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 +4 -4
- data/fog-xenserver.gemspec +1 -1
- data/lib/fog/bin/xenserver.rb +29 -0
- data/lib/fog/{xen_server → xenserver}/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0269325f7c966d090346e8338c3afe76376885c
|
4
|
+
data.tar.gz: 2adc377168002f1925552dc513c0d45f87c87f20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9db549d9311be20e980a0e054e553b98ff1b5da43ef49101aa1ec443b00e54b6fddfb6a2a1db9f17d98c1b85839fb64f5cbdae447e78169ed93082694d548216
|
7
|
+
data.tar.gz: 8c343a5de1ac2d4e5faefa4f3620cda73624f235f2a46b1d5382ef8d3231a3a723acc5989fc6b41b025103fa56a8b8bbaa974c0025aeeccf543be0321d484a20
|
data/fog-xenserver.gemspec
CHANGED
@@ -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
|
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.
|
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
|
+
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
|