Class: EYCli::Command::Deploy

Inherits:
Base
  • Object
show all
Defined in:
lib/ey_cli/commands/deploy.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#options_parser, #run

Constructor Details

#initializeDeploy

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

#helpObject



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

#invokeObject



9
10
11
12
# File 'lib/ey_cli/commands/deploy.rb', line 9

def invoke
  app = @apps.fetch_app(nil, options)
  @environments.deploy(app, options)
end