lib/cloudstack-cli/commands/publicip.rb in cloudstack-cli-0.0.5 vs lib/cloudstack-cli/commands/publicip.rb in cloudstack-cli-0.1.0
- old
+ new
@@ -1,9 +1,8 @@
-class Publicip < Thor
+class Publicip < CloudstackCli::Base
- desc "publicip remove ID", "remove public IP address"
+ desc "remove ID", "remove public IP address"
def remove(id)
- cs_cli = CloudstackCli::Helper.new(options[:config])
- puts "OK" if cs_cli.remove_publicip(id)
+ puts "OK" if client.disassociate_ip_address(id)
end
end
\ No newline at end of file