Class: Inploy::CLI
- Inherits:
-
Object
- Object
- Inploy::CLI
- Defined in:
- lib/inploy/cli.rb
Class Method Summary collapse
Class Method Details
.execute(params) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/inploy/cli.rb', line 3 def self.execute(params) deploy = Deploy.new case params.size when 0 deploy.remote_update when 1 deploy.send "remote_#{params.first}" when 2 deploy.send "remote_#{params.first}", parse(params.last) end end |