Sha256: 08f065f5711eab890b0dddb4588a0f6351fb31aa53bf42e16a02a6660f058a60

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

module Workflow
  def self.annonymous_workflow(name = nil, &block)
    mod = Module.new
    mod.extend Workflow
    mod.name = name
    mod.directory = Workflow.directory[name] if name
    mod.instance_eval(&block)
    mod
  end

  def find_in_dependencies(name, dependencies)
    name = name.to_sym
    dependencies.select{|dep| dep.task_name.to_sym == name }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scout-gear-10.4.0 lib/scout/workflow/util.rb
scout-gear-10.3.0 lib/scout/workflow/util.rb
scout-gear-10.2.0 lib/scout/workflow/util.rb