exe/conoha in conoha-0.2.2 vs exe/conoha in conoha-0.2.3
- old
+ new
@@ -40,10 +40,15 @@
pp Conoha.vps_list
when 'ipaddress'
exit 1 if ARGV.size != 1
pp Conoha.ip_address_of server_id(ARGV.first)
when 'create'
- pp Conoha.create *ARGV
+ begin
+ pp Conoha.create *ARGV
+ rescue => e
+ STDERR.puts e.to_s
+ exit 1
+ end
when 'delete'
exit 1 if ARGV.size != 1
puts Conoha.delete server_id(ARGV.first)
when 'boot'
exit 1 if ARGV.size != 1