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 +4 -4
- data/lib/cloudstack_client/commands/server.rb +4 -7
- data/lib/cloudstack_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda2eb85c8feabc7e2e5037a386ecaa8b8149e0a
|
4
|
+
data.tar.gz: f100b711a43130e0043cfecb489101d95bd50c22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[:
|
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[:
|
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[:
|
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
|
|
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.
|
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-
|
11
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|