fog-serverlove 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88e3da07e4d10d6d77c4114e281d62ecdb91d1e4
4
- data.tar.gz: 86a5ef00c3dc87435a03ec9edf9e85c5362ef6dc
3
+ metadata.gz: 43a3ac139dc1cdb32a8d4586bb8a84c4dabc5ec9
4
+ data.tar.gz: b04cf3df5e6bc02ae7ae40a04ce4e8c37d30be4a
5
5
  SHA512:
6
- metadata.gz: b5aa6980236a1c8314158efcee2a9f7e909a4b6f7ec33a7cb79b6da81a13b6cd1e9d75f211e345c707f2765eb1cfdf75c31717cc68709f1fedd0b5930f380e5d
7
- data.tar.gz: 7516d4da8192f1e6fb2fef2a5297cbdc47fe759b6a98da9a37355764ec8541a58519b169376c02fe4896e2f84ebdd11652540ec0e17cc435931dcf9087b5570d
6
+ metadata.gz: 26ca8f808552220ce6dbb88c6dbed1a88920eaae32eb1098add342a7bf9a034350bc6c817518bd0dff185e7b89d24b59c4dfd218202a4cd389c3811d65fca9c0
7
+ data.tar.gz: 275a4755bc99213e1cb3bfd545133104320122a618e1f55103aa9046421d4c52aa8720ff0025f0ab9dd74d7f8e7c2ba42329e2bbb85185f57f58fc857d7f31b1
@@ -0,0 +1,29 @@
1
+ class Serverlove < Fog::Bin
2
+ class << self
3
+ def class_for(key)
4
+ case key
5
+ when :compute
6
+ Fog::Compute::Serverlove
7
+ else
8
+ raise ArgumentError, "Unrecognized service: #{key}"
9
+ end
10
+ end
11
+
12
+ def [](service)
13
+ @@connections ||= Hash.new do |hash, key|
14
+ hash[key] = case key
15
+ when :compute
16
+ Fog::Logger.warning("Serverlove[:compute] is not recommended, use Compute[:serverlove] for portability")
17
+ Fog::Compute.new(:provider => 'Serverlove')
18
+ else
19
+ raise ArgumentError, "Unrecognized service: #{key.inspect}"
20
+ end
21
+ end
22
+ @@connections[service]
23
+ end
24
+
25
+ def services
26
+ Fog::Serverlove.services
27
+ end
28
+ end
29
+ end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Serverlove
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-serverlove
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Henrique Lopes Ribeiro
@@ -160,6 +160,7 @@ files:
160
160
  - fog-serverlove.gemspec
161
161
  - gemfiles/Gemfile.1.9.2-
162
162
  - gemfiles/Gemfile.1.9.3+
163
+ - lib/fog/bin/serverlove.rb
163
164
  - lib/fog/compute/serverlove.rb
164
165
  - lib/fog/compute/serverlove/models/image.rb
165
166
  - lib/fog/compute/serverlove/models/images.rb