Sha256: a1738be8d4f4de8b68c18f3c774d675039dab21c14b033d05318e5594bd9b260

Contents?: true

Size: 691 Bytes

Versions: 1

Compression:

Stored size: 691 Bytes

Contents

module RSpecSystem
  # Base class for a NodeSet.
  class NodeSet::Base
    attr_reader :config, :setname

    def initialize(setname, config)
      @setname = setname
      @config = config
    end

    # Setup the NodeSet by starting all nodes.
    def setup
    end

    # Shutdown the NodeSet by shutting down or pausing all nodes.
    def teardown
    end

    # Take a snapshot of the NodeSet for rollback later.
    def snapshot
    end

    # Rollback to the snapshot of the NodeSet.
    def rollback
    end

    # Run a command on a host in the NodeSet.
    def run(dest, command)
    end

    # Return environment type
    def env_type
      self.class::ENV_TYPE
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-system-0.0.2 lib/rspec-system/node_set/base.rb