Sha256: c561524217b2b31593628c56135a357cf6938d0219326016293aa7084c2a5c3f
Contents?: true
Size: 448 Bytes
Versions: 5
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.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
5 entries across 5 versions & 1 rubygems