Class: Chef::Knife::ClodoServerIpDelete

Inherits:
Chef::Knife show all
Includes:
ClodoBase
Defined in:
lib/chef/knife/clodo_server_ip_delete.rb

Instance Method Summary collapse

Methods included from ClodoBase

#connection, included, #locate_config_value

Instance Method Details

#runObject



15
16
17
18
19
20
21
22
23
# File 'lib/chef/knife/clodo_server_ip_delete.rb', line 15

def run
  unless @name_args[0] && @name_args[1]
    ui.error("You have not provided server ID, and IP-address.");
    exit 1;
  end
  
  connection.delete_ip_address(@name_args[0], @name_args[1]);

end