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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fc85400b51baea8a039a7d3ff78dd81057bc733
4
- data.tar.gz: 850b702b9158cb5f016d90f71207172d7f5dee15
3
+ metadata.gz: 1534777ce12a9ad4a323273c6e184b50c3c16bc7
4
+ data.tar.gz: e8b84594f8ef10057587a07b2cab3fcc98974e77
5
5
  SHA512:
6
- metadata.gz: ceb5a646a675bbd3f49bd27b772d1aad9cc3fa9ffa44130069619af7f8eefbe611036ff2b72257ce71aa6b96815b3019e3e1803005cdbb910991febc326817a5
7
- data.tar.gz: 195edfdec98780452c0a121f9902cd1540169fcb35a2fab348b2c9ce20ec922b6a0f57f00a9ee21bc55ab6f5a75765514506c09b91bd7147830867c000ef8ff8
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.3)
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.0)
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.4
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}"
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "1.5.4"
2
+ VERSION = "1.5.5"
3
3
  end
data/test/ma-test.yml ADDED
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: test-from-templ
3
+ description: Testinstall from Template
4
+ version: 1.0
5
+ zone: ZUERICH_IX
6
+ servers:
7
+ - name: test-01
8
+ template: web-d2-2015-07-16
9
+ offering: 1cpu_1gb
10
+ networks: wolfgrni
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
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-06-11 00:00:00.000000000 Z
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