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: bc62cce20d77c903e8f268814e691eca6f17655c
4
- data.tar.gz: c68133607b69dbe870ddd74845967ec4bebc595b
3
+ metadata.gz: 4994f89604941f384473c6795931d14c9f338934
4
+ data.tar.gz: b3e015964a616e3e4fb0b67a713730dcff2a2fd5
5
5
  SHA512:
6
- metadata.gz: 7adc8f67c6ebe7bb885de0830dd06dea2added8408f18d091d69a44eb8065595bb5131a69b2f32677a0967f0d0db2469e4258b0712fcd17094be62e2246061b2
7
- data.tar.gz: 2ef57023bbcbd5fffbfd81f7e92fe62272bed879e47a82987fafc5992e252e21fbb5950ac26961249b8ea5a57dfedb1017aebaa8d3880a00ce2bcc841e82a07a
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(snapshot_ref)
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.revert_to_vm(snapshot.reference)
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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module XenServer
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -535,14 +535,14 @@ describe Fog::Compute::XenServer::Models::Server do
535
535
  end
536
536
  end
537
537
 
538
- describe '#revert_to' do
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.revert_to_vm(reference); @reverted = true end
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.revert_to('snapshot')
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.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-09 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-xml