Class: Stagecoach::Capistrano
- Inherits:
-
Object
- Object
- Stagecoach::Capistrano
- Defined in:
- lib/stagecoach/capistrano.rb
Class Method Summary collapse
Class Method Details
.deploy(branch) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/stagecoach/capistrano.rb', line 4 def deploy(branch) CommandLine.line_break branch = branch =~ /master/i ? 'production' : branch puts "Deploying to #{branch}" puts `bundle exec cap #{branch} deploy` end |