cloudstack_client 0.9.0 → 0.9.1

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: 27bacba7ee958ce9cc4740cd8809ba6e28aec1e2
4
- data.tar.gz: a3fbb5d8d8ec97b925fc04fcd4ca5c2915d98849
3
+ metadata.gz: 8ef10e1ab137a326a5bdc53f1eea7098a180f7da
4
+ data.tar.gz: 6b44fd29dcfe80dcea5246830c1c53524e7ea4cb
5
5
  SHA512:
6
- metadata.gz: f3823d7fd58ecafbc630006d778d987cd81d133ffad0c490156adff6b564541b0b95228085916565363fe110620bdcb8f8af7fe1fbee825dcaf4264453fe61df
7
- data.tar.gz: 6de78d65687f146bfe727b9006c17e818f3a3ee26a6003c38d62c5fe93834db28edec4c059a4846996dd0ee956a11f25bba5b01fa86a11864bf451d8c05b6a6a
6
+ metadata.gz: 82ec2f8a6bef543d47fe19fc40bf66d76a6268ee7252dcda2b251736c8ec7935c2b3ec67c8e977b19037621143a77e726e7675cd1a6981cc343f0eacc5aebe1f
7
+ data.tar.gz: d7f05aab6000c661db5721eac522879420834d25c66e4115bbe0f03aedcca37c0c6919d4cf1f48458309f35d9f93db16a149a7812492e8b6465c23072670181d
@@ -63,7 +63,7 @@ module CloudstackClient
63
63
  def wait_for_server_state(id, state)
64
64
  while get_server_state(id) != state
65
65
  print '..'
66
- sleep 5
66
+ sleep 5
67
67
  end
68
68
  state
69
69
  end
@@ -116,17 +116,20 @@ module CloudstackClient
116
116
  'command' => 'listVirtualMachines',
117
117
  'listAll' => true
118
118
  }
119
+ params.merge!(args[:custom])
120
+
119
121
  params['state'] = args[:state] if args[:state]
120
122
  params['state'] = args[:status] if args[:status]
121
123
  params['groupid'] = args[:group_id] if args[:group_id]
122
124
 
125
+
123
126
  if args[:zone]
124
127
  zone = get_zone(args[:zone])
125
- unless zone
128
+ unless zone
126
129
  puts "Error: Zone #{args[:zone]} not found"
127
130
  exit 1
128
131
  end
129
- params['zoneid'] = zone['id']
132
+ params['zoneid'] = zone['id']
130
133
  end
131
134
 
132
135
  if args[:account]
@@ -190,7 +193,7 @@ module CloudstackClient
190
193
 
191
194
  if args[:name]
192
195
  server = get_server(args[:name], project_id: params['projectid'])
193
- if server
196
+ if server
194
197
  puts "Error: Server '#{args[:name]}' already exists."
195
198
  exit 1
196
199
  end
@@ -341,7 +344,7 @@ module CloudstackClient
341
344
  params['expunge'] = true if args[:expunge]
342
345
  args[:sync] ? send_request(params) : send_async_request(params)['virtualmachine']
343
346
  end
344
-
347
+
345
348
  end
346
349
 
347
350
  end
@@ -1,3 +1,3 @@
1
1
  module CloudstackClient
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-09 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc