Sha256: f43fba380d33fc05454d44ee7503dcd3a16b89de811e80ef53a54bb447b186ab
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
module Coral module Util class Process #----------------------------------------------------------------------------- # Constructor / Destructor def initialize(name, &code) @name = name @code = code end #----------------------------------------------------------------------------- # Property accessors / modifiers attr_reader :name #--- def provider_options return { :parallel => true } end #----------------------------------------------------------------------------- # Actions def action(action_name, options = {}) if action_name == :run run(options) end end #--- def run(options = {}) @code.call(options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coral_core-0.2.30 | lib/coral_core/util/process.rb |