lib/testlab.rb in testlab-1.1.0 vs lib/testlab.rb in testlab-1.2.0

- old
+ new

@@ -320,9 +320,35 @@ reverse_method_proxy(:demolish) true end + # Test Lab Bounce + # + # Attempts to bounce our lab topology. This calls various methods on + # all of our nodes, networks and containers. + # + # @return [Boolean] True if successful. + def bounce + self.down + self.up + + true + end + + # Test Lab Recycle + # + # Attempts to recycle our lab topology. This calls various methods on + # all of our nodes, networks and containers. + # + # @return [Boolean] True if successful. + def recycle + self.demolish + self.build + + true + end + # Node Method Proxy # # Iterates all of the lab nodes, sending the supplied method name and arguments # to each node. #