wakame-adapters-tengine 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +9 -0
- data/Gemfile.lock +31 -0
- data/README +74 -0
- data/Rakefile +28 -0
- data/VERSION +1 -0
- data/lib/apis/ec2.rb +145 -0
- data/lib/apis/wakame.rb +206 -0
- data/lib/controllers/controller.rb +70 -0
- data/lib/tama.rb +23 -0
- data/test/calltama +93 -0
- data/test/calltama.yml +25 -0
- data/test/generic_test.rb +13 -0
- data/test/spec/config.yml +31 -0
- data/test/spec/real_api_spec.rb +39 -0
- data/test/spec/spec_helper.rb +101 -0
- data/test/test_files/describe_images.json +65 -0
- data/test/test_files/describe_instances.json +115 -0
- data/test/test_files/host_nodes.json +22 -0
- data/test/test_files/run_instances.json +30 -0
- data/test/test_files/show_instance_specs.json +23 -0
- data/test/test_files/terminate_instances.json +3 -0
- data/wakame-adapters-tengine.gemspec +65 -0
- metadata +114 -0
@@ -0,0 +1,115 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"owner_total": 2,
|
4
|
+
"start": 0,
|
5
|
+
"results": [
|
6
|
+
{
|
7
|
+
"vif": [
|
8
|
+
{
|
9
|
+
"ipv4": {
|
10
|
+
"nat_address": "172.16.0.234",
|
11
|
+
"address": "192.168.2.188"
|
12
|
+
},
|
13
|
+
"vif_id": "vif-aspojqs4"
|
14
|
+
}
|
15
|
+
],
|
16
|
+
"status": "online",
|
17
|
+
"memory_size": 256,
|
18
|
+
"ha_enabled": 0,
|
19
|
+
"network": [
|
20
|
+
{
|
21
|
+
"nat_ipaddr": [
|
22
|
+
"172.16.0.234"
|
23
|
+
],
|
24
|
+
"nat_dns_name": "jria301q.shpoolxx.vdc.public",
|
25
|
+
"dns_name": "jria301q.shpoolxx.vdc.local",
|
26
|
+
"ipaddr": [
|
27
|
+
"192.168.2.188"
|
28
|
+
],
|
29
|
+
"nat_network_name": "nw-outside",
|
30
|
+
"network_name": "nw-data"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"nat_ipaddr": [
|
34
|
+
|
35
|
+
],
|
36
|
+
"nat_dns_name": null,
|
37
|
+
"dns_name": "9pia8e7p.shpoolxx.vdc.extra",
|
38
|
+
"ipaddr": [
|
39
|
+
"10.0.2.94"
|
40
|
+
],
|
41
|
+
"nat_network_name": null,
|
42
|
+
"network_name": "nw-extra"
|
43
|
+
}
|
44
|
+
],
|
45
|
+
"state": "running",
|
46
|
+
"image_id": "wmi-lucid5",
|
47
|
+
"arch": "x86_64",
|
48
|
+
"hostname": "jria301q",
|
49
|
+
"host_node": "hp-demohost",
|
50
|
+
"created_at": "2011-10-18T06:51:16Z",
|
51
|
+
"instance_spec_id": "is-demospec",
|
52
|
+
"netfilter_group_id": [
|
53
|
+
"ng-demofgr"
|
54
|
+
],
|
55
|
+
"ssh_key_pair": null,
|
56
|
+
"volume": [
|
57
|
+
|
58
|
+
],
|
59
|
+
"netfilter_group": [
|
60
|
+
"default"
|
61
|
+
],
|
62
|
+
"id": "i-jria301q",
|
63
|
+
"cpu_cores": 1
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"vif": [
|
67
|
+
{
|
68
|
+
"ipv4": {
|
69
|
+
"nat_address": null,
|
70
|
+
"address": "192.168.2.94"
|
71
|
+
},
|
72
|
+
"vif_id": "vif-h85j75s9"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"status": "online",
|
76
|
+
"memory_size": 256,
|
77
|
+
"ha_enabled": 0,
|
78
|
+
"network": [
|
79
|
+
{
|
80
|
+
"nat_ipaddr": [
|
81
|
+
|
82
|
+
],
|
83
|
+
"nat_dns_name": null,
|
84
|
+
"dns_name": "9pia8e7p.shpoolxx.vdc.local",
|
85
|
+
"ipaddr": [
|
86
|
+
"192.168.2.94"
|
87
|
+
],
|
88
|
+
"nat_network_name": null,
|
89
|
+
"network_name": "nw-data"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"state": "running",
|
93
|
+
"image_id": "wmi-lucid5",
|
94
|
+
"arch": "x86_64",
|
95
|
+
"hostname": "9pia8e7p",
|
96
|
+
"host_node": "hp-demohost",
|
97
|
+
"created_at": "2011-10-18T06:48:47Z",
|
98
|
+
"instance_spec_id": "is-demospec",
|
99
|
+
"netfilter_group_id": [
|
100
|
+
"ng-demofgr"
|
101
|
+
],
|
102
|
+
"ssh_key_pair": null,
|
103
|
+
"volume": [
|
104
|
+
|
105
|
+
],
|
106
|
+
"netfilter_group": [
|
107
|
+
"default"
|
108
|
+
],
|
109
|
+
"id": "i-9pia8e7p",
|
110
|
+
"cpu_cores": 1
|
111
|
+
}
|
112
|
+
],
|
113
|
+
"limit": null
|
114
|
+
}
|
115
|
+
]
|
@@ -0,0 +1,22 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"owner_total": 1,
|
4
|
+
"start": 0,
|
5
|
+
"results": [
|
6
|
+
{
|
7
|
+
"status": "online",
|
8
|
+
"updated_at": "2011-10-18T03:53:24Z",
|
9
|
+
"account_id": "a-shpoolxx",
|
10
|
+
"offering_cpu_cores": 100,
|
11
|
+
"offering_memory_size": 400000,
|
12
|
+
"arch": "x86_64",
|
13
|
+
"hypervisor": "kvm",
|
14
|
+
"created_at": "2011-10-18T03:53:24Z",
|
15
|
+
"name": null,
|
16
|
+
"uuid": "hp-demohost",
|
17
|
+
"id": "hp-demohost"
|
18
|
+
}
|
19
|
+
],
|
20
|
+
"limit": null
|
21
|
+
}
|
22
|
+
]
|
@@ -0,0 +1,30 @@
|
|
1
|
+
[{
|
2
|
+
"vif": [
|
3
|
+
|
4
|
+
],
|
5
|
+
"status": "init",
|
6
|
+
"memory_size": 256,
|
7
|
+
"ha_enabled": 0,
|
8
|
+
"network": [
|
9
|
+
|
10
|
+
],
|
11
|
+
"state": "scheduling",
|
12
|
+
"image_id": "wmi-lucid5",
|
13
|
+
"arch": "x86_64",
|
14
|
+
"hostname": "9pia8e7p",
|
15
|
+
"host_node": null,
|
16
|
+
"created_at": "2011-10-18T06:48:47Z",
|
17
|
+
"instance_spec_id": "is-demospec",
|
18
|
+
"netfilter_group_id": [
|
19
|
+
"ng-demofgr"
|
20
|
+
],
|
21
|
+
"ssh_key_pair": null,
|
22
|
+
"volume": [
|
23
|
+
|
24
|
+
],
|
25
|
+
"netfilter_group": [
|
26
|
+
"default"
|
27
|
+
],
|
28
|
+
"id": "i-9pia8e7p",
|
29
|
+
"cpu_cores": 1
|
30
|
+
}]
|
@@ -0,0 +1,23 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"start": 0,
|
4
|
+
"owner_total": 1,
|
5
|
+
"results": [
|
6
|
+
{
|
7
|
+
"cpu_cores": 1,
|
8
|
+
"memory_size": 256,
|
9
|
+
"arch": "x86_64",
|
10
|
+
"hypervisor": "kvm",
|
11
|
+
"updated_at": "2011-10-28T02:58:57Z",
|
12
|
+
"account_id": "a-shpoolxx",
|
13
|
+
"vifs": "--- \neth0: \n :bandwidth: 100000\n :index: 0\n",
|
14
|
+
"quota_weight": 1.0,
|
15
|
+
"id": "is-demospec",
|
16
|
+
"created_at": "2011-10-28T02:58:57Z",
|
17
|
+
"drives": "--- \nephemeral1: \n :type: :local\n :size: 100\n :index: 0\n",
|
18
|
+
"uuid": "is-demospec"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"limit": null
|
22
|
+
}
|
23
|
+
]
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "wakame-adapters-tengine"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["axsh"]
|
12
|
+
s.date = "2011-11-11"
|
13
|
+
s.description = "wakame-adapters-tengine is ..."
|
14
|
+
s.email = "axsh"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"Gemfile",
|
20
|
+
"Gemfile.lock",
|
21
|
+
"README",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"lib/apis/ec2.rb",
|
25
|
+
"lib/apis/wakame.rb",
|
26
|
+
"lib/controllers/controller.rb",
|
27
|
+
"tama.rb",
|
28
|
+
"test/calltama",
|
29
|
+
"test/calltama.yml",
|
30
|
+
"test/generic_test.rb",
|
31
|
+
"test/spec/config.yml",
|
32
|
+
"test/spec/real_api_spec.rb",
|
33
|
+
"test/spec/spec_helper.rb",
|
34
|
+
"test/test_files/describe_images.json",
|
35
|
+
"test/test_files/describe_instances.json",
|
36
|
+
"test/test_files/host_nodes.json",
|
37
|
+
"test/test_files/run_instances.json",
|
38
|
+
"test/test_files/show_instance_specs.json",
|
39
|
+
"test/test_files/terminate_instances.json",
|
40
|
+
"wakame-adapters-tengine.gemspec"
|
41
|
+
]
|
42
|
+
s.homepage = "https://github.com/axsh-dev/wakame-adapters-tengine"
|
43
|
+
s.require_paths = ["lib"]
|
44
|
+
s.rubygems_version = "1.8.11"
|
45
|
+
s.summary = "wakame-adapters-tengine is ..."
|
46
|
+
|
47
|
+
if s.respond_to? :specification_version then
|
48
|
+
s.specification_version = 3
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
+
s.add_runtime_dependency(%q<json>, [">= 0"])
|
52
|
+
s.add_runtime_dependency(%q<right_aws>, [">= 0"])
|
53
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
54
|
+
else
|
55
|
+
s.add_dependency(%q<json>, [">= 0"])
|
56
|
+
s.add_dependency(%q<right_aws>, [">= 0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
58
|
+
end
|
59
|
+
else
|
60
|
+
s.add_dependency(%q<json>, [">= 0"])
|
61
|
+
s.add_dependency(%q<right_aws>, [">= 0"])
|
62
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
metadata
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wakame-adapters-tengine
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- axsh
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-02-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: json
|
16
|
+
requirement: &76402740 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *76402740
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: right_aws
|
27
|
+
requirement: &76402080 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - =
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.1.0
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *76402080
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &76401100 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *76401100
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: jeweler
|
49
|
+
requirement: &76400260 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.6.4
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *76400260
|
58
|
+
description: wakame-adapters-tengine is ...
|
59
|
+
email: axsh
|
60
|
+
executables: []
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files:
|
63
|
+
- README
|
64
|
+
files:
|
65
|
+
- Gemfile
|
66
|
+
- Gemfile.lock
|
67
|
+
- README
|
68
|
+
- Rakefile
|
69
|
+
- VERSION
|
70
|
+
- lib/apis/ec2.rb
|
71
|
+
- lib/apis/wakame.rb
|
72
|
+
- lib/controllers/controller.rb
|
73
|
+
- lib/tama.rb
|
74
|
+
- test/calltama
|
75
|
+
- test/calltama.yml
|
76
|
+
- test/generic_test.rb
|
77
|
+
- test/spec/config.yml
|
78
|
+
- test/spec/real_api_spec.rb
|
79
|
+
- test/spec/spec_helper.rb
|
80
|
+
- test/test_files/describe_images.json
|
81
|
+
- test/test_files/describe_instances.json
|
82
|
+
- test/test_files/host_nodes.json
|
83
|
+
- test/test_files/run_instances.json
|
84
|
+
- test/test_files/show_instance_specs.json
|
85
|
+
- test/test_files/terminate_instances.json
|
86
|
+
- wakame-adapters-tengine.gemspec
|
87
|
+
homepage: https://github.com/axsh-dev/wakame-adapters-tengine
|
88
|
+
licenses: []
|
89
|
+
post_install_message:
|
90
|
+
rdoc_options: []
|
91
|
+
require_paths:
|
92
|
+
- lib
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
segments:
|
100
|
+
- 0
|
101
|
+
hash: -666031315
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ! '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
requirements: []
|
109
|
+
rubyforge_project:
|
110
|
+
rubygems_version: 1.8.11
|
111
|
+
signing_key:
|
112
|
+
specification_version: 3
|
113
|
+
summary: wakame-adapters-tengine is ...
|
114
|
+
test_files: []
|