fog-vsphere 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/vsphere.rb +28 -0
- data/lib/fog/vsphere/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: 71601b7402d7ac578ae4b95695610bc61a204add
|
4
|
+
data.tar.gz: e869c48a3983c58512c093dc1d42cc5f352d118c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f4747cb9507890c887ecfaa2fc5ec20a188449bf2e37bba29e61964bb0496991c36a7b0f94a14461d53c569c244a7aeae0f48e286b9a6db1cd7b16fa6302e4
|
7
|
+
data.tar.gz: 290e51fa0e1c0df361d7013f9ae1b93699f9080029f73dc7246d50e2d45bad1fe5fe55b2aa1140cd7d2c5e31cf30126c9aafaeb033296c93fa377ced84aa62c1
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Vsphere
|
2
|
+
class << self
|
3
|
+
def class_for(key)
|
4
|
+
case key
|
5
|
+
when :compute
|
6
|
+
Fog::Compute::Vsphere
|
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::Compute.new(:provider => 'Vsphere')
|
17
|
+
else
|
18
|
+
raise ArgumentError, "Unrecognized service: #{key.inspect}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
@@connections[service]
|
22
|
+
end
|
23
|
+
|
24
|
+
def services
|
25
|
+
Fog::Vsphere.services
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/fog/vsphere/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-vsphere
|
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
|
- J.R. Garcia
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- fog-vsphere.gemspec
|
128
128
|
- gemfiles/Gemfile.1.9.2+
|
129
129
|
- gemfiles/Gemfile.1.9.2-
|
130
|
+
- lib/fog/bin/vsphere.rb
|
130
131
|
- lib/fog/vsphere.rb
|
131
132
|
- lib/fog/vsphere/compute.rb
|
132
133
|
- lib/fog/vsphere/models/compute/cluster.rb
|