mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-16 03:41:41 +00:00
Define DryRunnable#dry_run?
A dry-runnable Agent can use this method to decide if it should avoid affecting unsandboxed resources, like calling an external API that might change any state.
This commit is contained in:
parent
864152b871
commit
40d6192070
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ module DryRunnable
|
|||
)
|
||||
end
|
||||
|
||||
def dry_run?
|
||||
is_a? Sandbox
|
||||
end
|
||||
|
||||
module Sandbox
|
||||
attr_accessor :results
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue