cloudstack_client 0.3.1 → 0.3.2
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 +4 -4
- data/lib/cloudstack_client/commands/server.rb +6 -6
- data/lib/cloudstack_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab5d5da9c325df3899f91f51aa8d94c902f81163
|
4
|
+
data.tar.gz: f59485aaea903b8512ef8b9d9202c16b892c957a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = {
|
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 = {
|
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 = {
|
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
|
|