Sha256: ed48c37f1f7d028b665da4a3efd3745107c31fb5444d92d96e4c00e8348bc13e

Contents?: true

Size: 497 Bytes

Versions: 51

Compression:

Stored size: 497 Bytes

Contents

class TestLab
  module Support

    module Lifecycle

      # Build the object
      def build
        create
        up
        provision

        true
      end

      # Demolish the object
      def demolish
        deprovision
        down
        destroy

        true
      end

      # Recycle the object
      def recycle
        demolish
        build

        true
      end

      # Bounce the object
      def bounce
        down
        up

        true
      end

    end

  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
testlab-1.18.1 lib/testlab/support/lifecycle.rb
testlab-1.18.0 lib/testlab/support/lifecycle.rb
testlab-1.17.0 lib/testlab/support/lifecycle.rb
testlab-1.16.1 lib/testlab/support/lifecycle.rb
testlab-1.16.0 lib/testlab/support/lifecycle.rb
testlab-1.15.1 lib/testlab/support/lifecycle.rb
testlab-1.15.0 lib/testlab/support/lifecycle.rb
testlab-1.14.0 lib/testlab/support/lifecycle.rb
testlab-1.13.0 lib/testlab/support/lifecycle.rb
testlab-1.12.0 lib/testlab/support/lifecycle.rb
testlab-1.11.7 lib/testlab/support/lifecycle.rb
testlab-1.11.6 lib/testlab/support/lifecycle.rb
testlab-1.11.5 lib/testlab/support/lifecycle.rb
testlab-1.11.4 lib/testlab/support/lifecycle.rb
testlab-1.11.3 lib/testlab/support/lifecycle.rb
testlab-1.11.2 lib/testlab/support/lifecycle.rb
testlab-1.11.1 lib/testlab/support/lifecycle.rb
testlab-1.11.0 lib/testlab/support/lifecycle.rb
testlab-1.10.0 lib/testlab/support/lifecycle.rb
testlab-1.9.2 lib/testlab/support/lifecycle.rb