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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfe6e1cbbfc4227977c73a8745a21b95dc3620bb
4
- data.tar.gz: b8affb28c374525ca1c7672b8ba41b872dffd46a
3
+ metadata.gz: 71601b7402d7ac578ae4b95695610bc61a204add
4
+ data.tar.gz: e869c48a3983c58512c093dc1d42cc5f352d118c
5
5
  SHA512:
6
- metadata.gz: 42468d362477c2f717de36467569278bbd9d6936f6f56809d2c6e968da8e206f73dc051d8dde82c0308645a0aed406f0bfbfac4aecaaecc19e55a72942e5469e
7
- data.tar.gz: 8d7dfb60c5849b2bd1865a1ffd8e5823e6a3904d578682d3c8e4e922a17625591db912458b2a27f210d6d8e7d966320a50d133f859b84dbcad56015431c4519f
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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
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-vsphere
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
  - 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