fog-xenserver 0.1.2 → 0.2.0

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: 4994f89604941f384473c6795931d14c9f338934
4
- data.tar.gz: b3e015964a616e3e4fb0b67a713730dcff2a2fd5
3
+ metadata.gz: f0269325f7c966d090346e8338c3afe76376885c
4
+ data.tar.gz: 2adc377168002f1925552dc513c0d45f87c87f20
5
5
  SHA512:
6
- metadata.gz: 10fefb822b60cc18cc4218289b4cd59e873f83d46552156c3d5ab79eace225cbe7a5f3dd6f3c0962ad0f33a78524f50d9473cb7fc77cfd5b81d4ede1ca50f437
7
- data.tar.gz: cc19eff0c70e3e2cf87a90bc37d3e941b6056bd72591ff802fe224fe23d5733d2c2625e69ff10f50c18329656e17a56dcf442fda336148c29e052f86c5464454
6
+ metadata.gz: 9db549d9311be20e980a0e054e553b98ff1b5da43ef49101aa1ec443b00e54b6fddfb6a2a1db9f17d98c1b85839fb64f5cbdae447e78169ed93082694d548216
7
+ data.tar.gz: 8c343a5de1ac2d4e5faefa4f3620cda73624f235f2a46b1d5382ef8d3231a3a723acc5989fc6b41b025103fa56a8b8bbaa974c0025aeeccf543be0321d484a20
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'fog/xen_server/version'
4
+ require 'fog/xenserver/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'fog-xenserver'
@@ -0,0 +1,29 @@
1
+ class XenServer < Fog::Bin
2
+ class << self
3
+ def class_for(key)
4
+ case key
5
+ when :compute
6
+ Fog::Compute::XenServer
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("XenServer[:compute] is not recommended, use Compute[:xenserver] for portability")
17
+ Fog::Compute.new(:provider => 'XenServer')
18
+ else
19
+ raise ArgumentError, "Unrecognized service: #{key.inspect}"
20
+ end
21
+ end
22
+ @@connections[service]
23
+ end
24
+
25
+ def services
26
+ Fog::XenServer.services
27
+ end
28
+ end
29
+ end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module XenServer
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-xenserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Henrique Lopes Ribeiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-xml
@@ -156,6 +156,7 @@ files:
156
156
  - fog-xenserver.gemspec
157
157
  - gemfiles/Gemfile.1.9.2+
158
158
  - gemfiles/Gemfile.1.9.2-
159
+ - lib/fog/bin/xenserver.rb
159
160
  - lib/fog/compute/xen_server.rb
160
161
  - lib/fog/compute/xen_server/mock.rb
161
162
  - lib/fog/compute/xen_server/models.rb
@@ -482,9 +483,9 @@ files:
482
483
  - lib/fog/xen_server/nokogiri_stream_parser.rb
483
484
  - lib/fog/xen_server/not_found.rb
484
485
  - lib/fog/xen_server/request_failed.rb
485
- - lib/fog/xen_server/version.rb
486
486
  - lib/fog/xenserver.rb
487
487
  - lib/fog/xenserver/compute.rb
488
+ - lib/fog/xenserver/version.rb
488
489
  - spec/cassettes/builtin_templates.yml
489
490
  - spec/cassettes/clone_server.yml
490
491
  - spec/cassettes/create_network.yml