cloudstack_client 0.9.7 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -11
- data/bin/cloudstack_client +5 -0
- data/cloudstack_client.gemspec +2 -0
- data/config/4.2.json +1 -0
- data/lib/cloudstack_client/api.rb +29 -0
- data/lib/cloudstack_client/cli.rb +107 -0
- data/lib/cloudstack_client/client.rb +34 -127
- data/lib/cloudstack_client/connection.rb +131 -0
- data/lib/cloudstack_client/error.rb +9 -0
- data/lib/cloudstack_client/version.rb +1 -1
- data/lib/cloudstack_client.rb +0 -1
- metadata +38 -34
- data/lib/cloudstack_client/commands/account.rb +0 -38
- data/lib/cloudstack_client/commands/affinity_group.rb +0 -39
- data/lib/cloudstack_client/commands/capacity.rb +0 -30
- data/lib/cloudstack_client/commands/cluster.rb +0 -19
- data/lib/cloudstack_client/commands/configuration.rb +0 -42
- data/lib/cloudstack_client/commands/disk_offering.rb +0 -49
- data/lib/cloudstack_client/commands/domain.rb +0 -22
- data/lib/cloudstack_client/commands/host.rb +0 -28
- data/lib/cloudstack_client/commands/ip_address.rb +0 -83
- data/lib/cloudstack_client/commands/iso.rb +0 -76
- data/lib/cloudstack_client/commands/job.rb +0 -29
- data/lib/cloudstack_client/commands/load_balancer_rule.rb +0 -61
- data/lib/cloudstack_client/commands/network.rb +0 -130
- data/lib/cloudstack_client/commands/pod.rb +0 -20
- data/lib/cloudstack_client/commands/port_forwarding_rule.rb +0 -49
- data/lib/cloudstack_client/commands/project.rb +0 -32
- data/lib/cloudstack_client/commands/region.rb +0 -19
- data/lib/cloudstack_client/commands/resource_limit.rb +0 -125
- data/lib/cloudstack_client/commands/router.rb +0 -100
- data/lib/cloudstack_client/commands/server.rb +0 -350
- data/lib/cloudstack_client/commands/service_offering.rb +0 -98
- data/lib/cloudstack_client/commands/snapshot.rb +0 -51
- data/lib/cloudstack_client/commands/ssh_key_pair.rb +0 -137
- data/lib/cloudstack_client/commands/storage_pool.rb +0 -31
- data/lib/cloudstack_client/commands/system_vm.rb +0 -82
- data/lib/cloudstack_client/commands/template.rb +0 -60
- data/lib/cloudstack_client/commands/user.rb +0 -32
- data/lib/cloudstack_client/commands/volume.rb +0 -54
- data/lib/cloudstack_client/commands/zone.rb +0 -57
- data/lib/connection_helper.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbdf827427d6082f13e387fb4ac08e1d3ca53a26
|
4
|
+
data.tar.gz: 62ef06679e1f7cd5ba5e21eb031d7a08902c4b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1481dfdd002e4d8cca0a286919a38222d29e76e7280050e32169b80daa765ab9a780012ed714f23c5470201d28b23bd15f6240b6b58daa573ab8ab302e21b579
|
7
|
+
data.tar.gz: 76e25246ad5b51bf3666ff36bac2d680c018a2d0e98961ad6ef1171705a44b34b980a691029ee1d6108083180d1c3cbf17e4c73e731ba6a8ab9f8533389433ae
|
data/README.md
CHANGED
@@ -11,22 +11,22 @@ Install the cloudstack_client gem:
|
|
11
11
|
```bash
|
12
12
|
$ gem install cloudstack_client
|
13
13
|
```
|
14
|
-
|
14
|
+
|
15
15
|
## Usage
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
require "cloudstack_client"
|
19
|
-
|
20
|
-
cs = CloudstackClient::
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
|
20
|
+
cs = CloudstackClient::Client.new(
|
21
|
+
"https://cloudstack.local/client/api",
|
22
|
+
"API_KEY",
|
23
|
+
"API_SECRET"
|
24
24
|
)
|
25
|
-
|
26
|
-
cs.
|
27
|
-
puts server[
|
25
|
+
|
26
|
+
cs.list_virtual_machines(state: "running").each do |server|
|
27
|
+
puts server["name"]
|
28
28
|
end
|
29
|
-
```
|
29
|
+
```
|
30
30
|
|
31
31
|
## References
|
32
32
|
- [Apache CloudStack API documentation](http://cloudstack.apache.org/docs/api/)
|
@@ -41,6 +41,6 @@ end
|
|
41
41
|
|
42
42
|
## License
|
43
43
|
|
44
|
-
Copyright (c) 2014, Nik Wolfgramm
|
44
|
+
Copyright (c) 2014-2015, Nik Wolfgramm
|
45
45
|
|
46
46
|
Released under the MIT License. See the [LICENSE](https://raw.github.com/niwo/cloudstack_client/master/LICENSE.txt) file for further details.
|
data/cloudstack_client.gemspec
CHANGED