Sha256: 594f205c2d5588b6120103b37a75559672ffd0da3fe29929f1f477248906fbed

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 Bytes

Contents

require_relative '../../config'

class Step
  def config(key, *tokens)
    options = tokens.pop if Hash === tokens.last
    options ||= {}

    new_tokens = []
    if workflow
      workflow_name = workflow.to_s
      new_tokens << ("workflow:" << workflow_name)
      new_tokens << ("task:" << workflow_name << "#" << task_name.to_s)
    end
    new_tokens << ("task:" << task_name.to_s)

    Scout::Config.get(key, tokens + new_tokens, options)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
scout-gear-9.1.0 lib/scout/workflow/step/config.rb
scout-gear-9.0.0 lib/scout/workflow/step/config.rb
scout-gear-8.1.0 lib/scout/workflow/step/config.rb
scout-gear-8.0.0 lib/scout/workflow/step/config.rb
scout-gear-7.3.0 lib/scout/workflow/step/config.rb
scout-gear-7.2.0 lib/scout/workflow/step/config.rb