cloudstack-cli 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99141439bf28aa5016f37c7f0c177724c60a26c6
4
- data.tar.gz: 1241704a4a4737469786b5e1f7a7d90deba16c54
3
+ metadata.gz: 17a7ebf2ce1a01adc78f76dc1d672087609e7e5f
4
+ data.tar.gz: e5e094b17cf191301e513d7e26e99da9b7d3fc46
5
5
  SHA512:
6
- metadata.gz: 073ac88981b9a4a0e8b355f5a476881d084a41838e04a8261dcf86993e8650874571706419ef68d64e1c7f2959a17e87a772fde3debef4dc172befec62f89190
7
- data.tar.gz: a9de0b7fa807eafd2164fd1d4c6ca222cde76d8a0cea41ca8ce639a0fd49407e21b5d5ce227cd992b0a920f2173711296d829d2386f160e054e84567d7797718
6
+ metadata.gz: 2b385e94e7493d717bafbf7b2d1022c3852178640798ab0cfc46b991f8980f362d9943c2a29ae35c66ba0e760ae7e8fcd75850f3479354b2d4b4043844d3c895
7
+ data.tar.gz: b6a4536f601a05ded51f1b771a47ac862642bca08f3c74a1179ea04b7c2b679b7a724de2a01e5e87ef324b943d4861e0a81a840a7c403a6ebdc186873793da64
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ PATH
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- cloudstack-cli (1.2.5)
10
+ cloudstack-cli (1.2.6)
11
11
  cloudstack_client (~> 1.2)
12
12
  multi_json (~> 1.11)
13
13
  thor (~> 0.19)
@@ -5,7 +5,7 @@ class Iso < CloudstackCli::Base
5
5
  option :zone
6
6
  option :account
7
7
  option :type,
8
- enum: %w(featured self self-executable executable community all)
8
+ enum: %w(featured self selfexecutable sharedexecutable executable community all)
9
9
  def list
10
10
  resolve_project
11
11
  resolve_zone
@@ -85,6 +85,7 @@ class VirtualMachine < CloudstackCli::Base
85
85
  option :keypair, desc: "the name of the ssh keypair to use"
86
86
  option :group, desc: "group name"
87
87
  option :account, desc: "account name"
88
+ option :ip_address, desc: "the ip address for default vm's network"
88
89
  def create(*names)
89
90
  vm_options_to_params
90
91
 
@@ -99,7 +100,7 @@ class VirtualMachine < CloudstackCli::Base
99
100
  }
100
101
  else
101
102
  job = {
102
- id: client.deploy_virtual_machine(options, {sync: true})['jobid'],
103
+ id: client.deploy_virtual_machine(options.merge(name: name), {sync: true})['jobid'],
103
104
  name: "Create virtual machine #{name}"
104
105
  }
105
106
  end
@@ -234,7 +235,7 @@ class VirtualMachine < CloudstackCli::Base
234
235
  say "\nCommand #{options[:command]} not supported.", :red
235
236
  exit 1
236
237
  end
237
- exit unless yes?("\n#{command.capitalize} the virtual_machine(s) above? [y/N]:", :magenta)
238
+ exit unless yes?("\n#{command.capitalize} the virtual machine(s) above? [y/N]:", :magenta)
238
239
 
239
240
  jobs = virtual_machines.map do |vm|
240
241
  {
@@ -100,10 +100,16 @@ module CloudstackCli
100
100
 
101
101
  def resolve_iso
102
102
  if options[:iso]
103
- unless iso = client.list_isos(
104
- name: options[:iso],
105
- project_id: options[:project_id]
103
+ iso = false
104
+ %w(self featured community).each do |iso_filter|
105
+ iso = client.list_isos(
106
+ name: options[:iso],
107
+ project_id: options[:project_id],
108
+ isofilter: iso_filter
106
109
  ).first
110
+ break if iso
111
+ end
112
+ unless iso
107
113
  say "Error: Iso '#{options[:iso]}' is invalid.", :red
108
114
  exit 1
109
115
  end
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "1.2.5"
2
+ VERSION = "1.2.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-24 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake