Skip to content

Instantly share code, notes, and snippets.

@emirikol
Created August 14, 2014 15:16
Show Gist options
  • Save emirikol/340b55c38b726bb26e80 to your computer and use it in GitHub Desktop.
Save emirikol/340b55c38b726bb26e80 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
env = ARGV.shift
files = ARGV.map {|f| f.sub(/^\//, '') }.join(',')
Kernel.exec "cap #{env} deploy:upload FILES=#{files} deploy:restart"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment