Allow access to registry from conditions
This commit is contained in:
@@ -29,6 +29,9 @@ module Producer
|
||||
end
|
||||
end
|
||||
|
||||
extend Forwardable
|
||||
def_delegators :@env, :get
|
||||
|
||||
define_test :`, Tests::ShellCommandStatus
|
||||
define_test :sh, Tests::ShellCommandStatus
|
||||
define_test :file_contains, Tests::FileContains
|
||||
|
@@ -20,6 +20,7 @@ module Producer
|
||||
def [](key)
|
||||
@registry[key]
|
||||
end
|
||||
alias get []
|
||||
|
||||
def []=(key, value)
|
||||
@registry[key] = value
|
||||
|
Reference in New Issue
Block a user