Sha256: 7a45a357261edb483c7c993fb3da292d87efcac895ce7a3caf612a3cf82d3d55
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
module Psychic class Runner class HotRunner include BaseRunner def initialize(opts = {}) hints = opts.delete :hints super @hints = Psychic::Util.stringified_hash(hints || load_hints || {}) @tasks = @hints['tasks'] || {} @known_tasks = @tasks.keys end def [](task_name) @tasks[task_name] end private def load_hints hints_file = Dir["#{@cwd}/psychic-hints.{yaml,yml}"].first YAML.load(File.read(hints_file)) unless hints_file.nil? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
psychic-runner-0.0.3 | lib/psychic/runner/hot_runner.rb |
psychic-runner-0.0.2 | lib/psychic/runner/hot_runner.rb |