Sha256: 3294b1de0486510addd6be78883efcbcab9782ceea155fad8673c4ad7cd7fb9a
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
require 'scout/config' class Step def config(key, *tokens) options = tokens.pop if Hash === tokens.last options ||= {} new_tokens = [] if workflow workflow_name = workflow.name 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
4 entries across 4 versions & 1 rubygems