cloudstack_client 0.3.3 → 0.3.4

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: fdafa7bf5c04d075bf4492b9d21164254485c487
4
- data.tar.gz: f201730b49f77af97d9dedeaa8d369bc8bee9767
3
+ metadata.gz: cda2eb85c8feabc7e2e5037a386ecaa8b8149e0a
4
+ data.tar.gz: f100b711a43130e0043cfecb489101d95bd50c22
5
5
  SHA512:
6
- metadata.gz: 8f5b48cd86110b2c77637ceb671f5a6b33a1f6199efaaf15dc6f7c858c0479dd7d75e8dc25b606af186aa779516ca15e13c542337016b802823adf2f17377070
7
- data.tar.gz: 14755b5962cb951828ba95b33162be37c23af54a132fe77b59ad006d7e764eed5d59815f5181573110425bff3d036952d60e806e7993e93b275336e5253b8466
6
+ metadata.gz: 18c2c59bfff7e5894bbce4740f2425846c6fdc552812171af9c2aeeaad82e7e28a2ac593ae11c80de8e731350d87f6c00f0b0e323b24785ceb7bbc132c32a510
7
+ data.tar.gz: 6b3d672b9d4c7216b31f6de2eeac358157d28f509c27106ad708c962c0d42d3c2c400a45d42ee26e4a67c7e638aa58cea687846fabc3c48ccc4983ca93397c92
@@ -8,6 +8,7 @@ module CloudstackClient
8
8
  def get_server(name, args = {})
9
9
  params = {
10
10
  'command' => 'listVirtualMachines',
11
+ 'listAll' => true,
11
12
  'name' => name
12
13
  }
13
14
  params['projectid'] = args[:project_id] if args[:project_id]
@@ -258,8 +259,7 @@ module CloudstackClient
258
259
  'id' => server['id']
259
260
  }
260
261
  params['forced'] = true if args[:forced]
261
- args[:async] = true unless args[:async] == false
262
- args[:async] ? send_async_request(params)['virtualmachine'] : send_request(params)
262
+ args[:sync] ? send_request(params) : send_async_request(params)['virtualmachine']
263
263
  end
264
264
 
265
265
  ##
@@ -277,8 +277,7 @@ module CloudstackClient
277
277
  'command' => 'startVirtualMachine',
278
278
  'id' => server['id']
279
279
  }
280
- args[:async] = true unless args[:async] == false
281
- args[:async] ? send_async_request(params)['virtualmachine'] : send_request(params)
280
+ args[:sync] ? send_request(params) : send_async_request(params)['virtualmachine']
282
281
  end
283
282
 
284
283
  ##
@@ -296,8 +295,7 @@ module CloudstackClient
296
295
  'command' => 'rebootVirtualMachine',
297
296
  'id' => server['id']
298
297
  }
299
- args[:async] = true unless args[:async] == false
300
- args[:async] ? send_async_request(params)['virtualmachine'] : send_request(params)
298
+ args[:sync] ? send_request(params) : send_async_request(params)['virtualmachine']
301
299
  end
302
300
 
303
301
  ##
@@ -309,7 +307,6 @@ module CloudstackClient
309
307
  'command' => 'destroyVirtualMachine',
310
308
  'id' => id
311
309
  }
312
-
313
310
  async ? send_async_request(params)['virtualmachine'] : send_request(params)
314
311
  end
315
312
 
@@ -1,3 +1,3 @@
1
1
  module CloudstackClient
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-16 00:00:00.000000000 Z
11
+ date: 2013-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc