fog-xenserver 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4994f89604941f384473c6795931d14c9f338934
|
4
|
+
data.tar.gz: b3e015964a616e3e4fb0b67a713730dcff2a2fd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10fefb822b60cc18cc4218289b4cd59e873f83d46552156c3d5ab79eace225cbe7a5f3dd6f3c0962ad0f33a78524f50d9473cb7fc77cfd5b81d4ede1ca50f437
|
7
|
+
data.tar.gz: cc19eff0c70e3e2cf87a90bc37d3e941b6056bd72591ff802fe224fe23d5733d2c2625e69ff10f50c18329656e17a56dcf442fda336148c29e052f86c5464454
|
@@ -158,15 +158,12 @@ module Fog
|
|
158
158
|
reload
|
159
159
|
end
|
160
160
|
|
161
|
-
def revert(
|
162
|
-
Fog::Logger.deprecation 'This method is DEPRECATED. Use #revert_to instead.'
|
163
|
-
revert_to(snapshot_ref)
|
164
|
-
end
|
165
|
-
|
166
|
-
def revert_to(snapshot)
|
161
|
+
def revert(snapshot)
|
167
162
|
snapshot = collection.get_by_reference_or_name_or_uuid(snapshot)
|
168
|
-
service.
|
163
|
+
service.revert_vm(snapshot.reference)
|
169
164
|
end
|
165
|
+
|
166
|
+
alias_method :revert_to, :revert
|
170
167
|
end
|
171
168
|
end
|
172
169
|
end
|
@@ -535,14 +535,14 @@ describe Fog::Compute::XenServer::Models::Server do
|
|
535
535
|
end
|
536
536
|
end
|
537
537
|
|
538
|
-
describe '#
|
538
|
+
describe '#revert' do
|
539
539
|
before :each do
|
540
540
|
collection.instance_variable_set(:@server, server)
|
541
541
|
def collection.get_by_reference_or_name_or_uuid(name); @server end
|
542
|
-
def service.
|
542
|
+
def service.revert_vm(reference); @reverted = true end
|
543
543
|
server.stub(:service, service) do
|
544
544
|
server.stub(:collection, collection) do
|
545
|
-
server.
|
545
|
+
server.revert('snapshot')
|
546
546
|
end
|
547
547
|
end
|
548
548
|
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.
|
4
|
+
version: 0.1.2
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-xml
|