fog-sakuracloud 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +65 -0
- data/.gitmodules +3 -0
- data/.travis.yml +9 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +35 -0
- data/Rakefile +113 -0
- data/fog-sakuracloud.gemspec +41 -0
- data/gemfiles/Gemfile.1.8.7 +6 -0
- data/lib/fog/sakuracloud.rb +16 -0
- data/lib/fog/sakuracloud/compute.rb +65 -0
- data/lib/fog/sakuracloud/models/compute/plan.rb +15 -0
- data/lib/fog/sakuracloud/models/compute/plans.rb +22 -0
- data/lib/fog/sakuracloud/models/compute/server.rb +40 -0
- data/lib/fog/sakuracloud/models/compute/servers.rb +63 -0
- data/lib/fog/sakuracloud/models/compute/ssh_key.rb +13 -0
- data/lib/fog/sakuracloud/models/compute/ssh_keys.rb +22 -0
- data/lib/fog/sakuracloud/models/compute/zone.rb +13 -0
- data/lib/fog/sakuracloud/models/compute/zones.rb +22 -0
- data/lib/fog/sakuracloud/models/volume/archive.rb +14 -0
- data/lib/fog/sakuracloud/models/volume/archives.rb +22 -0
- data/lib/fog/sakuracloud/models/volume/disk.rb +37 -0
- data/lib/fog/sakuracloud/models/volume/disks.rb +27 -0
- data/lib/fog/sakuracloud/models/volume/plan.rb +12 -0
- data/lib/fog/sakuracloud/models/volume/plans.rb +22 -0
- data/lib/fog/sakuracloud/requests/compute/boot_server.rb +31 -0
- data/lib/fog/sakuracloud/requests/compute/create_server.rb +41 -0
- data/lib/fog/sakuracloud/requests/compute/delete_server.rb +33 -0
- data/lib/fog/sakuracloud/requests/compute/list_plans.rb +46 -0
- data/lib/fog/sakuracloud/requests/compute/list_servers.rb +44 -0
- data/lib/fog/sakuracloud/requests/compute/list_ssh_keys.rb +40 -0
- data/lib/fog/sakuracloud/requests/compute/list_zones.rb +40 -0
- data/lib/fog/sakuracloud/requests/compute/stop_server.rb +37 -0
- data/lib/fog/sakuracloud/requests/volume/attach_disk.rb +30 -0
- data/lib/fog/sakuracloud/requests/volume/configure_disk.rb +35 -0
- data/lib/fog/sakuracloud/requests/volume/create_disk.rb +43 -0
- data/lib/fog/sakuracloud/requests/volume/delete_disk.rb +30 -0
- data/lib/fog/sakuracloud/requests/volume/list_archives.rb +46 -0
- data/lib/fog/sakuracloud/requests/volume/list_disks.rb +50 -0
- data/lib/fog/sakuracloud/requests/volume/list_plans.rb +40 -0
- data/lib/fog/sakuracloud/version.rb +5 -0
- data/lib/fog/sakuracloud/volume.rb +88 -0
- data/tests/helper.rb +8 -0
- data/tests/sakuracloud/helper.rb +7 -0
- data/tests/sakuracloud/requests/compute/plans_tests.rb +32 -0
- data/tests/sakuracloud/requests/compute/servers_tests.rb +46 -0
- data/tests/sakuracloud/requests/compute/ssh_keys_tests.rb +30 -0
- data/tests/sakuracloud/requests/compute/zones_tests.rb +30 -0
- data/tests/sakuracloud/requests/volume/archives_tests.rb +31 -0
- data/tests/sakuracloud/requests/volume/disks_tests.rb +47 -0
- data/tests/sakuracloud/requests/volume/plans_tests.rb +30 -0
- metadata +326 -0
@@ -0,0 +1,88 @@
|
|
1
|
+
require 'fog/sakuracloud'
|
2
|
+
require 'fog/volume'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module Volume
|
6
|
+
class SakuraCloud < Fog::Service
|
7
|
+
requires :sakuracloud_api_token
|
8
|
+
requires :sakuracloud_api_token_secret
|
9
|
+
|
10
|
+
recognizes :sakuracloud_api_url
|
11
|
+
|
12
|
+
model_path 'fog/sakuracloud/models/volume'
|
13
|
+
model :archive
|
14
|
+
collection :archives
|
15
|
+
model :plan
|
16
|
+
collection :plans
|
17
|
+
model :disk
|
18
|
+
collection :disks
|
19
|
+
|
20
|
+
request_path 'fog/sakuracloud/requests/volume'
|
21
|
+
request :list_disks
|
22
|
+
request :list_plans
|
23
|
+
request :create_disk
|
24
|
+
request :configure_disk
|
25
|
+
request :attach_disk
|
26
|
+
request :delete_disk
|
27
|
+
request :list_archives
|
28
|
+
|
29
|
+
class Real
|
30
|
+
def initialize(options = {})
|
31
|
+
@auth_encord = Base64.strict_encode64([
|
32
|
+
options[:sakuracloud_api_token],
|
33
|
+
options[:sakuracloud_api_token_secret]
|
34
|
+
].join(':'))
|
35
|
+
Fog.credentials[:sakuracloud_api_token] = options[:sakuracloud_api_token]
|
36
|
+
Fog.credentials[:sakuracloud_api_token_secret] = options[:sakuracloud_api_token_secret]
|
37
|
+
|
38
|
+
@sakuracloud_api_url = options[:sakuracloud_api_url] || 'https://secure.sakura.ad.jp'
|
39
|
+
|
40
|
+
@connection = Fog::Core::Connection.new(@sakuracloud_api_url)
|
41
|
+
end
|
42
|
+
|
43
|
+
def request(params)
|
44
|
+
response = parse @connection.request(params)
|
45
|
+
response
|
46
|
+
end
|
47
|
+
|
48
|
+
private
|
49
|
+
def parse(response)
|
50
|
+
return response if response.body.empty?
|
51
|
+
response.body = Fog::JSON.decode(response.body)
|
52
|
+
response
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class Mock
|
57
|
+
def self.data
|
58
|
+
@data ||= Hash.new do |hash, key|
|
59
|
+
hash[key] = {
|
60
|
+
:disks => [],
|
61
|
+
:plans => [],
|
62
|
+
:archives => []
|
63
|
+
}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.reset
|
68
|
+
@data = nil
|
69
|
+
end
|
70
|
+
|
71
|
+
def initialize(options={})
|
72
|
+
@sakuracloud_api_token = options[:sakuracloud_api_token]
|
73
|
+
@sakuracloud_api_token_secret = options[:sakuracloud_api_token_secret]
|
74
|
+
end
|
75
|
+
|
76
|
+
def data
|
77
|
+
self.class.data[@sakuracloud_api_token]
|
78
|
+
self.class.data[@sakuracloud_api_token_secret]
|
79
|
+
end
|
80
|
+
|
81
|
+
def reset_data
|
82
|
+
self.class.data.delete(@sakuracloud_api_token)
|
83
|
+
self.class.data.delete(@sakuracloud_api_token_secret)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end #SakuraCloud
|
87
|
+
end #Volume
|
88
|
+
end
|
data/tests/helper.rb
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
## From fog-core
|
2
|
+
require 'fog/test_helpers/formats_helper'
|
3
|
+
|
4
|
+
## From fog submodule
|
5
|
+
require File.expand_path('../../fog/tests/helper', __FILE__)
|
6
|
+
helpers = Dir.glob(File.expand_path('../../', __FILE__) + '/fog/tests/helpers/**/*.rb')
|
7
|
+
helpers.map {|h| load h}
|
8
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
Shindo.tests('Fog::Compute[:sakuracloud] | list_plans request', ['sakuracloud', 'compute']) do
|
3
|
+
|
4
|
+
@plan_format = {
|
5
|
+
'Index' => Integer,
|
6
|
+
'ID' => Integer,
|
7
|
+
'Name' => String,
|
8
|
+
'CPU' => Integer,
|
9
|
+
'MemoryMB' => Integer,
|
10
|
+
'Availability' => String
|
11
|
+
}
|
12
|
+
|
13
|
+
tests('success') do
|
14
|
+
|
15
|
+
tests('#list_plans') do
|
16
|
+
serverplans = compute_service.list_plans
|
17
|
+
test 'returns a Hash' do
|
18
|
+
serverplans.body.is_a? Hash
|
19
|
+
end
|
20
|
+
if Fog.mock?
|
21
|
+
tests('ServerPlans').formats(@plan_format, false) do
|
22
|
+
serverplans.body['ServerPlans'].first
|
23
|
+
end
|
24
|
+
else
|
25
|
+
returns(200) { serverplans.status }
|
26
|
+
returns(false) { serverplans.body.empty? }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
Shindo.tests('Fog::Compute[:sakuracloud] | list_servers request', ['sakuracloud', 'compute']) do
|
3
|
+
|
4
|
+
@servers_format = {
|
5
|
+
'Index' => Integer,
|
6
|
+
'ID' => Integer,
|
7
|
+
'Name' => String,
|
8
|
+
'ServerPlan' => Hash,
|
9
|
+
'Instance' => Hash,
|
10
|
+
'Disks' => Array
|
11
|
+
}
|
12
|
+
|
13
|
+
tests('success') do
|
14
|
+
|
15
|
+
tests('#list_servers') do
|
16
|
+
servers = compute_service.list_servers
|
17
|
+
test 'returns a Hash' do
|
18
|
+
servers.body.is_a? Hash
|
19
|
+
end
|
20
|
+
if Fog.mock?
|
21
|
+
tests('Servers').formats(@servers_format, false) do
|
22
|
+
servers.body['Servers'].first
|
23
|
+
end
|
24
|
+
else
|
25
|
+
returns(200) { servers.status }
|
26
|
+
returns(true) { servers.body.is_a? Hash }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
Shindo.tests('Fog::Compute[:sakuracloud] | create_servers request', ['sakuracloud', 'compute']) do
|
33
|
+
tests('success') do
|
34
|
+
tests('#create_servers') do
|
35
|
+
servers = compute_service.create_server('foobar', 2001)
|
36
|
+
test 'returns a Hash' do
|
37
|
+
servers.body.is_a? Hash
|
38
|
+
end
|
39
|
+
|
40
|
+
unless Fog.mock?
|
41
|
+
returns(201) { servers.status }
|
42
|
+
returns(true) { servers.body.is_a? Hash }
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
Shindo.tests('Fog::Compute[:sakuracloud] | list_ssh_keys request', ['sakuracloud', 'compute']) do
|
3
|
+
|
4
|
+
@sshkey_format = {
|
5
|
+
'Index' => Integer,
|
6
|
+
'ID' => String,
|
7
|
+
'Name' => String,
|
8
|
+
'PublicKey' => String
|
9
|
+
}
|
10
|
+
|
11
|
+
tests('success') do
|
12
|
+
|
13
|
+
tests('#list_ssh_keys') do
|
14
|
+
sshkeys = compute_service.list_ssh_keys
|
15
|
+
test 'returns a Hash' do
|
16
|
+
sshkeys.body.is_a? Hash
|
17
|
+
end
|
18
|
+
if Fog.mock?
|
19
|
+
tests('SSHKeys').formats(@sshkey_format, false) do
|
20
|
+
sshkeys.body['SSHKeys'].first
|
21
|
+
end
|
22
|
+
else
|
23
|
+
returns(200) { sshkeys.status }
|
24
|
+
returns(false) { sshkeys.body.empty? }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
Shindo.tests('Fog::Compute[:sakuracloud] | list_zones request', ['sakuracloud', 'compute']) do
|
3
|
+
|
4
|
+
@zone_format = {
|
5
|
+
'Index' => Integer,
|
6
|
+
'ID' => Integer,
|
7
|
+
'Name' => String,
|
8
|
+
'Description' => String
|
9
|
+
}
|
10
|
+
|
11
|
+
tests('success') do
|
12
|
+
|
13
|
+
tests('#list_zones') do
|
14
|
+
zones = compute_service.list_zones
|
15
|
+
test 'returns a Hash' do
|
16
|
+
zones.body.is_a? Hash
|
17
|
+
end
|
18
|
+
if Fog.mock?
|
19
|
+
tests('Zones').formats(@zone_format, false) do
|
20
|
+
zones.body['Zones'].first
|
21
|
+
end
|
22
|
+
else
|
23
|
+
returns(200) { zones.status }
|
24
|
+
returns(false) { zones.body.empty? }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
Shindo.tests('Fog::Volume[:sakuracloud] | list_archives request', ['sakuracloud', 'volume']) do
|
3
|
+
|
4
|
+
@archive_format = {
|
5
|
+
'Index' => Integer,
|
6
|
+
'ID' => Integer,
|
7
|
+
'Name' => String,
|
8
|
+
'SizeMB' => Integer,
|
9
|
+
'Plan' => Hash
|
10
|
+
}
|
11
|
+
|
12
|
+
tests('success') do
|
13
|
+
|
14
|
+
tests('#list_archives') do
|
15
|
+
archives = volume_service.list_archives
|
16
|
+
test 'returns a Hash' do
|
17
|
+
archives.body.is_a? Hash
|
18
|
+
end
|
19
|
+
if Fog.mock?
|
20
|
+
tests('Archives').formats(@archive_format, false) do
|
21
|
+
archives.body['Archives'].first
|
22
|
+
end
|
23
|
+
else
|
24
|
+
returns(200) { archives.status }
|
25
|
+
returns(false) { archives.body.empty? }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
Shindo.tests('Fog::Volume[:sakuracloud] | list_disks request', ['sakuracloud', 'volume']) do
|
3
|
+
|
4
|
+
@disks_format = {
|
5
|
+
'Index' => Integer,
|
6
|
+
'ID' => Integer,
|
7
|
+
'Name' => String,
|
8
|
+
'Connection' => String,
|
9
|
+
'Availability' => String,
|
10
|
+
'SizeMB' => Integer,
|
11
|
+
'Plan' => Hash
|
12
|
+
}
|
13
|
+
|
14
|
+
tests('success') do
|
15
|
+
|
16
|
+
tests('#list_disks') do
|
17
|
+
disks = volume_service.list_disks
|
18
|
+
test 'returns a Hash' do
|
19
|
+
disks.body.is_a? Hash
|
20
|
+
end
|
21
|
+
if Fog.mock?
|
22
|
+
tests('Disks').formats(@disks_format, false) do
|
23
|
+
disks.body['Disks'].first
|
24
|
+
end
|
25
|
+
else
|
26
|
+
returns(200) { disks.status }
|
27
|
+
returns(true) { disks.body.is_a? Hash }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
Shindo.tests('Fog::Volume[:sakuracloud] | create_disks request', ['sakuracloud', 'volume']) do
|
34
|
+
tests('success') do
|
35
|
+
tests('#create_disks') do
|
36
|
+
disks = volume_service.create_disk('foobar', 4, 112500463685)
|
37
|
+
test 'returns a Hash' do
|
38
|
+
disks.body.is_a? Hash
|
39
|
+
end
|
40
|
+
|
41
|
+
unless Fog.mock?
|
42
|
+
returns(202) { disks.status }
|
43
|
+
returns(true) { disks.body.is_a? Hash }
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
Shindo.tests('Fog::Volume[:sakuracloud] | list_plans request', ['sakuracloud', 'volume']) do
|
3
|
+
|
4
|
+
@plan_format = {
|
5
|
+
'Index' => Integer,
|
6
|
+
'ID' => Integer,
|
7
|
+
'Name' => String,
|
8
|
+
'Availability' => String
|
9
|
+
}
|
10
|
+
|
11
|
+
tests('success') do
|
12
|
+
|
13
|
+
tests('#list_plans') do
|
14
|
+
diskplans = volume_service.list_plans
|
15
|
+
test 'returns a Hash' do
|
16
|
+
diskplans.body.is_a? Hash
|
17
|
+
end
|
18
|
+
if Fog.mock?
|
19
|
+
tests('DiskPlans').formats(@plan_format, false) do
|
20
|
+
diskplans.body['DiskPlans'].first
|
21
|
+
end
|
22
|
+
else
|
23
|
+
returns(200) { diskplans.status }
|
24
|
+
returns(false) { diskplans.body.empty? }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,326 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fog-sakuracloud
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sawanoboly
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-31 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: fog-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: fog-json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: fog
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rbvmomi
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: yard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: thor
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rbovirt
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.0.24
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.0.24
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: shindo
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.3.4
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.3.4
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: fission
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: pry
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: opennebula
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - '>='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 4.4.0
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - '>='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 4.4.0
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: google-api-client
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ~>
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0.6'
|
216
|
+
- - '>='
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: 0.6.2
|
219
|
+
type: :development
|
220
|
+
prerelease: false
|
221
|
+
version_requirements: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - ~>
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '0.6'
|
226
|
+
- - '>='
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: 0.6.2
|
229
|
+
- !ruby/object:Gem::Dependency
|
230
|
+
name: rubocop
|
231
|
+
requirement: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - '>='
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
type: :development
|
237
|
+
prerelease: false
|
238
|
+
version_requirements: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - '>='
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '0'
|
243
|
+
description: Module for the 'fog' gem to support Sakura no Cloud
|
244
|
+
email:
|
245
|
+
- sawanoboriyu@higanworks.com
|
246
|
+
executables: []
|
247
|
+
extensions: []
|
248
|
+
extra_rdoc_files: []
|
249
|
+
files:
|
250
|
+
- .gitignore
|
251
|
+
- .gitmodules
|
252
|
+
- .travis.yml
|
253
|
+
- Gemfile
|
254
|
+
- LICENSE.txt
|
255
|
+
- README.md
|
256
|
+
- Rakefile
|
257
|
+
- fog-sakuracloud.gemspec
|
258
|
+
- gemfiles/Gemfile.1.8.7
|
259
|
+
- lib/fog/sakuracloud.rb
|
260
|
+
- lib/fog/sakuracloud/compute.rb
|
261
|
+
- lib/fog/sakuracloud/models/compute/plan.rb
|
262
|
+
- lib/fog/sakuracloud/models/compute/plans.rb
|
263
|
+
- lib/fog/sakuracloud/models/compute/server.rb
|
264
|
+
- lib/fog/sakuracloud/models/compute/servers.rb
|
265
|
+
- lib/fog/sakuracloud/models/compute/ssh_key.rb
|
266
|
+
- lib/fog/sakuracloud/models/compute/ssh_keys.rb
|
267
|
+
- lib/fog/sakuracloud/models/compute/zone.rb
|
268
|
+
- lib/fog/sakuracloud/models/compute/zones.rb
|
269
|
+
- lib/fog/sakuracloud/models/volume/archive.rb
|
270
|
+
- lib/fog/sakuracloud/models/volume/archives.rb
|
271
|
+
- lib/fog/sakuracloud/models/volume/disk.rb
|
272
|
+
- lib/fog/sakuracloud/models/volume/disks.rb
|
273
|
+
- lib/fog/sakuracloud/models/volume/plan.rb
|
274
|
+
- lib/fog/sakuracloud/models/volume/plans.rb
|
275
|
+
- lib/fog/sakuracloud/requests/compute/boot_server.rb
|
276
|
+
- lib/fog/sakuracloud/requests/compute/create_server.rb
|
277
|
+
- lib/fog/sakuracloud/requests/compute/delete_server.rb
|
278
|
+
- lib/fog/sakuracloud/requests/compute/list_plans.rb
|
279
|
+
- lib/fog/sakuracloud/requests/compute/list_servers.rb
|
280
|
+
- lib/fog/sakuracloud/requests/compute/list_ssh_keys.rb
|
281
|
+
- lib/fog/sakuracloud/requests/compute/list_zones.rb
|
282
|
+
- lib/fog/sakuracloud/requests/compute/stop_server.rb
|
283
|
+
- lib/fog/sakuracloud/requests/volume/attach_disk.rb
|
284
|
+
- lib/fog/sakuracloud/requests/volume/configure_disk.rb
|
285
|
+
- lib/fog/sakuracloud/requests/volume/create_disk.rb
|
286
|
+
- lib/fog/sakuracloud/requests/volume/delete_disk.rb
|
287
|
+
- lib/fog/sakuracloud/requests/volume/list_archives.rb
|
288
|
+
- lib/fog/sakuracloud/requests/volume/list_disks.rb
|
289
|
+
- lib/fog/sakuracloud/requests/volume/list_plans.rb
|
290
|
+
- lib/fog/sakuracloud/version.rb
|
291
|
+
- lib/fog/sakuracloud/volume.rb
|
292
|
+
- tests/helper.rb
|
293
|
+
- tests/sakuracloud/helper.rb
|
294
|
+
- tests/sakuracloud/requests/compute/plans_tests.rb
|
295
|
+
- tests/sakuracloud/requests/compute/servers_tests.rb
|
296
|
+
- tests/sakuracloud/requests/compute/ssh_keys_tests.rb
|
297
|
+
- tests/sakuracloud/requests/compute/zones_tests.rb
|
298
|
+
- tests/sakuracloud/requests/volume/archives_tests.rb
|
299
|
+
- tests/sakuracloud/requests/volume/disks_tests.rb
|
300
|
+
- tests/sakuracloud/requests/volume/plans_tests.rb
|
301
|
+
homepage: ''
|
302
|
+
licenses:
|
303
|
+
- MIT
|
304
|
+
metadata: {}
|
305
|
+
post_install_message:
|
306
|
+
rdoc_options: []
|
307
|
+
require_paths:
|
308
|
+
- lib
|
309
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - '>='
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '0'
|
314
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
315
|
+
requirements:
|
316
|
+
- - '>='
|
317
|
+
- !ruby/object:Gem::Version
|
318
|
+
version: '0'
|
319
|
+
requirements: []
|
320
|
+
rubyforge_project:
|
321
|
+
rubygems_version: 2.1.11
|
322
|
+
signing_key:
|
323
|
+
specification_version: 4
|
324
|
+
summary: Module for the 'fog' gem to support Sakura no Cloud
|
325
|
+
test_files: []
|
326
|
+
has_rdoc:
|