cloudstack_ruby_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE +202 -0
- data/NOTICE +2 -0
- data/README.md +9 -0
- data/Rakefile +9 -0
- data/cloudstack_ruby_client.gemspec +19 -0
- data/lib/cloudstack_ruby_client.rb +3 -0
- data/lib/cloudstack_ruby_client/base_client.rb +52 -0
- data/lib/cloudstack_ruby_client/client.rb +6102 -0
- data/lib/cloudstack_ruby_client/version.rb +3 -0
- data/test/test_client.rb +14 -0
- metadata +74 -0
data/test/test_client.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'cloudstack_ruby_client'
|
3
|
+
|
4
|
+
class SampleTest < Test::Unit::TestCase
|
5
|
+
|
6
|
+
URL = 'http://192.168.56.10:8080/client/api/'
|
7
|
+
APIKEY = 'yy0sfCPpyKnvREhgpeIWzXORIIvyteq_iCgFpKXnqpdbnHuoYiK78nprSggG4hcx-hxwW897nU-XvGB0Tq8YFw'
|
8
|
+
SECKEY = 'Pse4fqYNnr1xvoRXlAe8NQKCSXeK_VGdwUxUzyLEPVQ7B3cI1Q7B8jmZ42FQpz2jIICFax1foIzg2716lJFZVw'
|
9
|
+
|
10
|
+
def test_english_hello
|
11
|
+
client = CloudstackRubyClient::Client.new(URL, APIKEY, SECKEY, false)
|
12
|
+
puts client.listNetworkOfferings()
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cloudstack_ruby_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Chip Childers
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2013-01-25 00:00:00 -05:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: A Ruby client for CloudStack's API, licensed via the Apache Software License v2.
|
22
|
+
email:
|
23
|
+
- chip.childers@gmail.com
|
24
|
+
executables: []
|
25
|
+
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
30
|
+
files:
|
31
|
+
- .gitignore
|
32
|
+
- Gemfile
|
33
|
+
- LICENSE
|
34
|
+
- NOTICE
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- cloudstack_ruby_client.gemspec
|
38
|
+
- lib/cloudstack_ruby_client.rb
|
39
|
+
- lib/cloudstack_ruby_client/base_client.rb
|
40
|
+
- lib/cloudstack_ruby_client/client.rb
|
41
|
+
- lib/cloudstack_ruby_client/version.rb
|
42
|
+
- test/test_client.rb
|
43
|
+
has_rdoc: true
|
44
|
+
homepage: https://github.com/chipchilders/cloudstack_ruby_client
|
45
|
+
licenses: []
|
46
|
+
|
47
|
+
post_install_message:
|
48
|
+
rdoc_options: []
|
49
|
+
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
version: "0"
|
66
|
+
requirements: []
|
67
|
+
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 1.3.6
|
70
|
+
signing_key:
|
71
|
+
specification_version: 3
|
72
|
+
summary: A Ruby client for CloudStack's API.
|
73
|
+
test_files:
|
74
|
+
- test/test_client.rb
|