Class: Chef::Knife::ClodoServerIpAdd
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::ClodoServerIpAdd
- Includes:
- ClodoBase
- Defined in:
- lib/chef/knife/clodo_server_ip_add.rb
Instance Method Summary collapse
Methods included from ClodoBase
#connection, included, #locate_config_value
Instance Method Details
#run ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/chef/knife/clodo_server_ip_add.rb', line 15 def run unless @name_args[0] ui.error("You have not provided server ID."); exit 1; end connection.add_ip_address(@name_args[0]); end |