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.
- data/lib/lab_manager.rb +16 -0
- metadata +1 -1
data/lib/lab_manager.rb
CHANGED
@@ -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)
|