lab-manager 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/lab_manager.rb +16 -0
  2. metadata +1 -1
@@ -257,6 +257,22 @@ class LabManager
257
257
  proxy.ConfigurationDelete(:configurationId => config.id)
258
258
  end
259
259
 
260
+ # Revert a configuratoin to its original state
261
+ #
262
+ # ==== XML Sample
263
+ #
264
+ # <ConfigurationPerformAction xmlns="http://vmware.com/labmanager">
265
+ # <configurationId>int</configurationId>
266
+ # <action>int</action>
267
+ # </ConfigurationPerformAction>
268
+ def revert(configuration_name)
269
+ config = configuration(configuration_name)
270
+
271
+ proxy.ConfigurationPerformAction(:configurationId => config.id, :action => 7)
272
+
273
+ true
274
+ end
275
+
260
276
  private
261
277
  def self.config
262
278
  YAML::load_file(@@configPath)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lab-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: