fog-sakuracloud 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/fog/bin/sakuracloud.rb +34 -0
- data/lib/fog/sakuracloud/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4ca4b284c86d687ba0fd58a9cde3cc139756975
|
4
|
+
data.tar.gz: 643b55776babe15ae42a98eb9e0ed110a55edf8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a504046c33349ca9b072d2e1cb4c99b123c484d83d95dad8249f383ae7d6de4684f4929d64b976d57aea4a68e7fd6f64b481325bdbc8025ff24fff67a0669aed
|
7
|
+
data.tar.gz: 7a23c5ec208e4f75e61babd6d2d809bc2543c5b04d336281fbb2adf5d5854a8d79361d358d9f4188e8d17519db3c350dc745c91746ed880ad26be429a44b9da8
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
class SakuraCloud < Fog::Bin
|
2
|
+
class << self
|
3
|
+
def class_for(key)
|
4
|
+
case key
|
5
|
+
when :compute
|
6
|
+
Fog::Compute::SakuraCloud
|
7
|
+
when :volume
|
8
|
+
Fog::Volume::SakuraCloud
|
9
|
+
else
|
10
|
+
raise ArgumentError, "Unrecognized service: #{key}"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def [](service)
|
15
|
+
@@connections ||= Hash.new do |hash, key|
|
16
|
+
hash[key] = case key
|
17
|
+
when :compute
|
18
|
+
Fog::Logger.warning("SakuraCloud[:compute] is not recommended, use Compute[:sakuracloud] for portability")
|
19
|
+
Fog::Compute.new(:provider => 'SakuraCloud')
|
20
|
+
when :volume
|
21
|
+
Fog::Logger.warning("SakuraCloud[:compute] is not recommended, use Compute[:SakuraCloud] for portability")
|
22
|
+
Fog::Compute.new(:provider => 'SakuraCloud')
|
23
|
+
else
|
24
|
+
raise ArgumentError, "Unrecognized service: #{key.inspect}"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
@@connections[service]
|
28
|
+
end
|
29
|
+
|
30
|
+
def services
|
31
|
+
Fog::SakuraCloud.services
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-sakuracloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sawanoboly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08
|
11
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -250,12 +250,14 @@ files:
|
|
250
250
|
- .gitignore
|
251
251
|
- .gitmodules
|
252
252
|
- .travis.yml
|
253
|
+
- CHANGELOG.md
|
253
254
|
- Gemfile
|
254
255
|
- LICENSE.txt
|
255
256
|
- README.md
|
256
257
|
- Rakefile
|
257
258
|
- fog-sakuracloud.gemspec
|
258
259
|
- gemfiles/Gemfile.1.8.7
|
260
|
+
- lib/fog/bin/sakuracloud.rb
|
259
261
|
- lib/fog/sakuracloud.rb
|
260
262
|
- lib/fog/sakuracloud/compute.rb
|
261
263
|
- lib/fog/sakuracloud/models/compute/plan.rb
|