Skip to content

Commit

Permalink
Merge pull request balvig#5 from balvig/last_release
Browse files Browse the repository at this point in the history
Use symlink target to determine last release
  • Loading branch information
balvig committed Oct 28, 2015
2 parents 83fe316 + e8ed84b commit a55bd5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capistrano/tasks/fiesta.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace :fiesta do

task :set_last_release do
on roles(:web).first do
releases = capture("ls #{releases_path}")
last_release = releases.split("\n").sort.last
last_release_path = capture("readlink #{current_path}")
last_release = last_release_path.split('/').last
set(:last_release, last_release)
end
end
Expand Down

0 comments on commit a55bd5d

Please sign in to comment.