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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -11
  3. data/bin/cloudstack_client +5 -0
  4. data/cloudstack_client.gemspec +2 -0
  5. data/config/4.2.json +1 -0
  6. data/lib/cloudstack_client/api.rb +29 -0
  7. data/lib/cloudstack_client/cli.rb +107 -0
  8. data/lib/cloudstack_client/client.rb +34 -127
  9. data/lib/cloudstack_client/connection.rb +131 -0
  10. data/lib/cloudstack_client/error.rb +9 -0
  11. data/lib/cloudstack_client/version.rb +1 -1
  12. data/lib/cloudstack_client.rb +0 -1
  13. metadata +38 -34
  14. data/lib/cloudstack_client/commands/account.rb +0 -38
  15. data/lib/cloudstack_client/commands/affinity_group.rb +0 -39
  16. data/lib/cloudstack_client/commands/capacity.rb +0 -30
  17. data/lib/cloudstack_client/commands/cluster.rb +0 -19
  18. data/lib/cloudstack_client/commands/configuration.rb +0 -42
  19. data/lib/cloudstack_client/commands/disk_offering.rb +0 -49
  20. data/lib/cloudstack_client/commands/domain.rb +0 -22
  21. data/lib/cloudstack_client/commands/host.rb +0 -28
  22. data/lib/cloudstack_client/commands/ip_address.rb +0 -83
  23. data/lib/cloudstack_client/commands/iso.rb +0 -76
  24. data/lib/cloudstack_client/commands/job.rb +0 -29
  25. data/lib/cloudstack_client/commands/load_balancer_rule.rb +0 -61
  26. data/lib/cloudstack_client/commands/network.rb +0 -130
  27. data/lib/cloudstack_client/commands/pod.rb +0 -20
  28. data/lib/cloudstack_client/commands/port_forwarding_rule.rb +0 -49
  29. data/lib/cloudstack_client/commands/project.rb +0 -32
  30. data/lib/cloudstack_client/commands/region.rb +0 -19
  31. data/lib/cloudstack_client/commands/resource_limit.rb +0 -125
  32. data/lib/cloudstack_client/commands/router.rb +0 -100
  33. data/lib/cloudstack_client/commands/server.rb +0 -350
  34. data/lib/cloudstack_client/commands/service_offering.rb +0 -98
  35. data/lib/cloudstack_client/commands/snapshot.rb +0 -51
  36. data/lib/cloudstack_client/commands/ssh_key_pair.rb +0 -137
  37. data/lib/cloudstack_client/commands/storage_pool.rb +0 -31
  38. data/lib/cloudstack_client/commands/system_vm.rb +0 -82
  39. data/lib/cloudstack_client/commands/template.rb +0 -60
  40. data/lib/cloudstack_client/commands/user.rb +0 -32
  41. data/lib/cloudstack_client/commands/volume.rb +0 -54
  42. data/lib/cloudstack_client/commands/zone.rb +0 -57
  43. data/lib/connection_helper.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2a2d40dacfee5848631290128014dc97e9c8779
4
- data.tar.gz: 3e6586720e833c58e1cc3749be18208fc0e4540d
3
+ metadata.gz: dbdf827427d6082f13e387fb4ac08e1d3ca53a26
4
+ data.tar.gz: 62ef06679e1f7cd5ba5e21eb031d7a08902c4b54
5
5
  SHA512:
6
- metadata.gz: 09364a8076d287ccab63de50edec4baf07a20cda57dc4670b07df6c304e53c9c7d85f7d9a570b14ef9b4635793720187de9bf3faf7d2adb175944c27eb18639c
7
- data.tar.gz: f8818939d6b9d9c281069c3dd972ad4c876d47b21e069a83c238df370894e9d06085c65890f6db8e5342c1918c50395be9aa95eb12a14c110b2b499d99ba6e50
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::Connection.new(
21
- 'https://cloudstack.url/client/api',
22
- 'API_KEY',
23
- 'API_SECRET'
19
+
20
+ cs = CloudstackClient::Client.new(
21
+ "https://cloudstack.local/client/api",
22
+ "API_KEY",
23
+ "API_SECRET"
24
24
  )
25
-
26
- cs.list_servers(state: 'running').each do |server|
27
- puts server['name']
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.
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'cloudstack_client/cli'
4
+
5
+ CloudstackClient::Cli.start
@@ -21,4 +21,6 @@ Gem::Specification.new do |gem|
21
21
 
22
22
  gem.add_development_dependency('rdoc')
23
23
  gem.add_development_dependency('rake', '~> 10.0', '>= 10.0.4')
24
+ gem.add_development_dependency('thor')
25
+ gem.add_development_dependency('ripl')
24
26
  end