Class: Gaptool::InitCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Gaptool::InitCommand
- Defined in:
- lib/gaptool_client/commands.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/gaptool_client/commands.rb', line 27 def execute no_terminate = no_terminate? ? true : nil res = Gaptool::API.client.addnode(zone, type, role, environment, nil, security_group, ami, chef_repo, chef_branch, chef_runlist, no_terminate) Gaptool::Helpers.error(res['message']) if res['result'] == 'error' res.merge( 'role' => role, 'environment' => environment ) res.delete('secret') Gaptool::Helpers.info([res], false, false) end |