cloudstack-cli 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/cloudstack-cli/commands/stack.rb +2 -2
- data/lib/cloudstack-cli/version.rb +1 -1
- data/test/ma-test.yml +10 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1534777ce12a9ad4a323273c6e184b50c3c16bc7
|
4
|
+
data.tar.gz: e8b84594f8ef10057587a07b2cab3fcc98974e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8290b799556132db45388f13a3064b932a3189064196516c00b249faaf3197f8363a9908efde981e68f043f31f2d129e886b67b2a728f11f9fef8d2c321f0d59
|
7
|
+
data.tar.gz: 2a68a0d8b25c7af5e02e90dc237340573a605f85a4f935e37d56a750970df2ff8138371dd5c9204fb65154278d8c7a5fc2d9f9b36e49fe1a6e118775c50cf0d0
|
data/Gemfile.lock
CHANGED
@@ -6,14 +6,14 @@ PATH
|
|
6
6
|
PATH
|
7
7
|
remote: .
|
8
8
|
specs:
|
9
|
-
cloudstack-cli (1.5.
|
9
|
+
cloudstack-cli (1.5.4)
|
10
10
|
cloudstack_client (~> 1.4)
|
11
11
|
thor (~> 0.19)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
rake (11.2.
|
16
|
+
rake (11.2.2)
|
17
17
|
thor (0.19.1)
|
18
18
|
|
19
19
|
PLATFORMS
|
@@ -25,4 +25,4 @@ DEPENDENCIES
|
|
25
25
|
rake (~> 11.2)
|
26
26
|
|
27
27
|
BUNDLED WITH
|
28
|
-
1.12.
|
28
|
+
1.12.5
|
@@ -13,7 +13,7 @@ class Stack < CloudstackCli::Base
|
|
13
13
|
jobs = []
|
14
14
|
stack["servers"].each do |instance|
|
15
15
|
string_to_array(instance["name"]).each do |name|
|
16
|
-
if options[:limit].include?(name)
|
16
|
+
if !options[:limit] || options[:limit].include?(name)
|
17
17
|
server = client.list_virtual_machines(name: name, project_id: project_id).first
|
18
18
|
if server
|
19
19
|
say "VM #{name} (#{server["state"]}) already exists.", :yellow
|
@@ -57,7 +57,7 @@ class Stack < CloudstackCli::Base
|
|
57
57
|
jobs = []
|
58
58
|
stack["servers"].each do |instance|
|
59
59
|
string_to_array(instance["name"]).each do |name|
|
60
|
-
if options[:limit].include?(name) && port_rules = string_to_array(instance["port_rules"])
|
60
|
+
if !options[:limit] || options[:limit].include?(name) && port_rules = string_to_array(instance["port_rules"])
|
61
61
|
server = client.list_virtual_machines(name: name, project_id: project_id).first
|
62
62
|
create_port_rules(server, port_rules, false).each_with_index do |job_id, index|
|
63
63
|
job_name = "Create port forwarding rules (#{port_rules[index]}) for VM #{name}"
|
data/test/ma-test.yml
ADDED
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.5.
|
4
|
+
version: 1.5.5
|
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-
|
11
|
+
date: 2016-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/cloudstack-cli/option_resolver.rb
|
109
109
|
- lib/cloudstack-cli/thor_patch.rb
|
110
110
|
- lib/cloudstack-cli/version.rb
|
111
|
+
- test/ma-test.yml
|
111
112
|
- test/stack_example.json
|
112
113
|
- test/stack_example.yml
|
113
114
|
homepage: http://github.com/niwo/cloudstack-cli
|
@@ -137,5 +138,6 @@ signing_key:
|
|
137
138
|
specification_version: 4
|
138
139
|
summary: cloudstack-cli CloudStack API client
|
139
140
|
test_files:
|
141
|
+
- test/ma-test.yml
|
140
142
|
- test/stack_example.json
|
141
143
|
- test/stack_example.yml
|