Sha256: 7148ddfc611864805cdebeec3c05696d1bc5e741e5db4035794483f7b527c2d8

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

module Rundock
  class Scenario
    attr_accessor :nodes
    attr_accessor :node_info
    attr_accessor :tasks

    def initialize
      @nodes = []
    end

    def run
      @nodes.each(&:run)
    end

    def complete
      @nodes.each { |n| n.complete(self) }
      self
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rundock-0.4.2 lib/rundock/scenario.rb
rundock-0.4.1 lib/rundock/scenario.rb
rundock-0.4.0 lib/rundock/scenario.rb
rundock-0.3.0 lib/rundock/scenario.rb
rundock-0.2.11 lib/rundock/scenario.rb
rundock-0.2.10 lib/rundock/scenario.rb