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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17a7ebf2ce1a01adc78f76dc1d672087609e7e5f
|
4
|
+
data.tar.gz: e5e094b17cf191301e513d7e26e99da9b7d3fc46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b385e94e7493d717bafbf7b2d1022c3852178640798ab0cfc46b991f8980f362d9943c2a29ae35c66ba0e760ae7e8fcd75850f3479354b2d4b4043844d3c895
|
7
|
+
data.tar.gz: b6a4536f601a05ded51f1b771a47ac862642bca08f3c74a1179ea04b7c2b679b7a724de2a01e5e87ef324b943d4861e0a81a840a7c403a6ebdc186873793da64
|
data/Gemfile.lock
CHANGED
@@ -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
|
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
|
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
|
-
|
104
|
-
|
105
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|