Sha256: bdba8a7d96ea33841003fceb43093213b6848df1664851fee0b42275a4d1389d
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
require 'rundock' module Rundock class Node attr_reader :name attr_reader :operations attr_reader :backend def initialize(name, backend) @name = name @backend = backend end def add_operation(ope) @operations = [] unless @operations @operations << ope end def run Logger.debug("run name: #{@name}") @operations.each do |ope| Logger.debug("operation type: #{ope.class}") ope.run(@backend, ope.attributes) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rundock-0.2.0 | lib/rundock/node.rb |
rundock-0.1.0 | lib/rundock/node.rb |