fog-sakuracloud 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 018f5f0ffb0403afc230a006c31b24e2b33f705d
4
- data.tar.gz: 9c58cef8a4ada62f109b8e3f70eb3207d91ad785
3
+ metadata.gz: e4ca4b284c86d687ba0fd58a9cde3cc139756975
4
+ data.tar.gz: 643b55776babe15ae42a98eb9e0ed110a55edf8f
5
5
  SHA512:
6
- metadata.gz: 85f54d5ff445dcc953c7396fe028546ebfa5b950f2d9e44d4055c85ebbf238b69e2544f63844890c426d31572a00666d650e0ef17406e0489fe1e2aba8ec32fa
7
- data.tar.gz: 112f7b31786a0d97ea9e66d76dcdd4b5650778ae3613aba77022931b646d6e4fddeb6a9615bceade3f976eb2290a61c6b7ced9f6e27143f8d5d89ac07eecb14d
6
+ metadata.gz: a504046c33349ca9b072d2e1cb4c99b123c484d83d95dad8249f383ae7d6de4684f4929d64b976d57aea4a68e7fd6f64b481325bdbc8025ff24fff67a0669aed
7
+ data.tar.gz: 7a23c5ec208e4f75e61babd6d2d809bc2543c5b04d336281fbb2adf5d5854a8d79361d358d9f4188e8d17519db3c350dc745c91746ed880ad26be429a44b9da8
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog of fog-sakuracloud
2
+
3
+ ## v0.0.4
4
+
5
+ - move lib/fog/bin/sakuracloud.rb from fog.
6
+
7
+ ## v0.0.1-0.0.3
8
+
9
+ - divide from fog.
10
+ - supports
11
+ - compute(with public switch only)
12
+ - volume
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Sakuracloud
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  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.3
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-31 00:00:00.000000000 Z
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