Class: Chef::Knife::ClodoServerIpMove

Inherits:
Chef::Knife show all
Includes:
ClodoBase
Defined in:
lib/chef/knife/clodo_server_ip_move.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_move.rb', line 15

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

end