Skip to content

Commit

Permalink
Don't annotate on servers without source code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyolliver committed Mar 14, 2014
1 parent 60e7faa commit 1a30ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/easy/deployment/capistrano.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def current_git_branch
end

desc "[internal] Annotate release into version.txt"
task :annotate_release do
task :annotate_release, :except => { :no_release => true } do
git_revision = `git rev-parse #{branch} 2> /dev/null`.strip
version_info = "Branch/Tag: #{branch}\\nRevision: #{git_revision}\\nDeployed To: #{stage}\\n\\nDeployed At: #{Time.now}\\nBy: #{`whoami`.chomp}\\n"
run %Q(printf "#{version_info}" > #{release_path}/version.txt)
Expand Down

0 comments on commit 1a30ea7

Please sign in to comment.