lib/testlab/support/lifecycle.rb in testlab-1.18.1 vs lib/testlab/support/lifecycle.rb in testlab-1.19.0

- old
+ new

@@ -2,14 +2,18 @@ module Support module Lifecycle # Build the object - def build - create - up - provision + def build(force=false) + if (force == false) and self.respond_to?(:importable?) and self.respond_to?(:import) and (self.importable? == true) + import + else + create + up + provision + end true end # Demolish the object @@ -20,12 +24,12 @@ true end # Recycle the object - def recycle + def recycle(force=false) demolish - build + build(force) true end # Bounce the object