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 +4 -4
- data/lib/fog/bin/serverlove.rb +29 -0
- data/lib/fog/serverlove/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43a3ac139dc1cdb32a8d4586bb8a84c4dabc5ec9
|
4
|
+
data.tar.gz: b04cf3df5e6bc02ae7ae40a04ce4e8c37d30be4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|