cloudstack_client 0.3.1 → 0.3.2

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: ad14dbd87dd06f05a23df366636a2412a699ee8d
4
- data.tar.gz: f9c04f372dff07cd9d844ccf89b7dce1d6f6256e
3
+ metadata.gz: ab5d5da9c325df3899f91f51aa8d94c902f81163
4
+ data.tar.gz: f59485aaea903b8512ef8b9d9202c16b892c957a
5
5
  SHA512:
6
- metadata.gz: eeb206ade3c1c142ec56ea197e001c6b95add7d1758a57bd421ba8f5b7bc9f6fd3bc6b63168e277da5c3a09719006f1f8a6506803b419581c58ce9789948da78
7
- data.tar.gz: 494104c2a16c68aab7bb01cf2f18dd85e2cb2ffd6af3425fbddfba2d3c07339b5066a07a8b012d54b237c9b7ba2b5f361f694a7b85e5d9f91ba4e254255c01e3
6
+ metadata.gz: 8e163ca896e964ac434431b81539a3ce850ae4e8efcc6982ef003e23993a03b4f26a7dd97c45fa6e90615f6993764d852e50190fecd7f5bcd67a55df6f45b7e2
7
+ data.tar.gz: d5aad9464d92e13682913a7cb2820a6d2a9fa1a9cff3e572f9ee9e5677a4410ce6ff4c19925657217b024c311611acb83eb56f34bddedbda328c6014fc60749d
@@ -244,7 +244,7 @@ module CloudstackClient
244
244
  # Stops the server with the specified name.
245
245
  #
246
246
 
247
- def stop_server(name, args = {async: true})
247
+ def stop_server(name, args = {})
248
248
  server = get_server(name, args)
249
249
  if !server || !server['id']
250
250
  puts "Error: Virtual machine '#{name}' does not exist"
@@ -256,7 +256,7 @@ module CloudstackClient
256
256
  'id' => server['id']
257
257
  }
258
258
  params['forced'] = true if args[:forced]
259
-
259
+ args[:async] = true unless args[:async] == false
260
260
  args[:async] ? send_async_request(params)['virtualmachine'] : send_request(params)
261
261
  end
262
262
 
@@ -264,7 +264,7 @@ module CloudstackClient
264
264
  # Start the server with the specified name.
265
265
  #
266
266
 
267
- def start_server(name, args = {async: true})
267
+ def start_server(name, args = {})
268
268
  server = get_server(name, args)
269
269
  if !server || !server['id']
270
270
  puts "Error: Virtual machine '#{name}' does not exist"
@@ -275,7 +275,7 @@ module CloudstackClient
275
275
  'command' => 'startVirtualMachine',
276
276
  'id' => server['id']
277
277
  }
278
-
278
+ args[:async] = true unless args[:async] == false
279
279
  args[:async] ? send_async_request(params)['virtualmachine'] : send_request(params)
280
280
  end
281
281
 
@@ -283,7 +283,7 @@ module CloudstackClient
283
283
  # Reboot the server with the specified name.
284
284
  #
285
285
 
286
- def reboot_server(name, args = {async: true})
286
+ def reboot_server(name, args = {})
287
287
  server = get_server(name, args)
288
288
  if !server || !server['id']
289
289
  puts "Error: Virtual machine '#{name}' does not exist"
@@ -294,7 +294,7 @@ module CloudstackClient
294
294
  'command' => 'rebootVirtualMachine',
295
295
  'id' => server['id']
296
296
  }
297
-
297
+ args[:async] = true unless args[:async] == false
298
298
  args[:async] ? send_async_request(params)['virtualmachine'] : send_request(params)
299
299
  end
300
300
 
@@ -1,3 +1,3 @@
1
1
  module CloudstackClient
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm