exe/conoha in conoha-0.10.0 vs exe/conoha in conoha-0.11.0

- old
+ new

@@ -107,10 +107,11 @@ puts Conoha.delete_image image_ref when 'createfromimage', 'restore' exit 1 if ARGV.size < 1 image_ref = image_ref_or_name ARGV[0] ram = ARGV[1] || 'g-1gb' - puts Conoha.create_from_image image_ref, ram + user_data = (ARGV[2] == '--user-data' ? ARGV[3] : nil) + puts Conoha.create_from_image image_ref, ram, user_data: user_data when 'ssh' exit 1 if ARGV.size < 1 || 2 < ARGV.size ipaddress = ipv4(Conoha.ip_address_of(server_id(ARGV.first))) user = ARGV[1].nil? ? '' : "#{ARGV[1]}@" command = "ssh -oStrictHostKeyChecking=no #{user}#{ipaddress}"