Skip to content

Instantly share code, notes, and snippets.

@csamuel
Created February 12, 2010 14:49
Show Gist options
  • Save csamuel/302620 to your computer and use it in GitHub Desktop.
Save csamuel/302620 to your computer and use it in GitHub Desktop.
# collect up our war into the deploy_from folder
# notice that all we're doing is a copy here,
# so it is pretty easy to swap this out for
# a wget command, which makes sense if you're
# using a continuous integration server like
# bamboo. (more on this later).
before 'deploy:update_code' do
unless(war.nil?)
puts "get war"
system("cp #{war} #{deploy_from}")
puts system("ls -l #{deploy_from}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment