Class: EYCli::Command::Deploy
- Defined in:
- lib/ey_cli/commands/deploy.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize ⇒ Deploy
constructor
A new instance of Deploy.
- #invoke ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ Deploy
Returns a new instance of Deploy.
4 5 6 7 |
# File 'lib/ey_cli/commands/deploy.rb', line 4 def initialize @apps = EYCli::Controller::Apps.new @environments = EYCli::Controller::Environments.new end |
Instance Method Details
#help ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/ey_cli/commands/deploy.rb', line 14 def help <<-EOF Usage: ey_cli deploy Note: takes the application's information from the current directory. It will guide you if it cannot reach that information. EOF end |
#invoke ⇒ Object
9 10 11 12 |
# File 'lib/ey_cli/commands/deploy.rb', line 9 def invoke app = @apps.fetch_app(nil, ) @environments.deploy(app, ) end |