mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-17 12:21:31 +00:00
Call interpolated
and options
with strings instead of symbols.
This commit is contained in:
parent
d3588f7384
commit
dfc2f86993
1 changed files with 3 additions and 3 deletions
|
@ -37,12 +37,12 @@ module Agents
|
|||
end
|
||||
|
||||
def working?
|
||||
event_created_within?(interpolated[:expected_update_period_in_days]) && !received_event_without_error?
|
||||
event_created_within?(interpolated['expected_update_period_in_days']) && !received_event_without_error?
|
||||
end
|
||||
|
||||
def check
|
||||
api = DropboxAPI.new(interpolated[:access_token])
|
||||
current_contents = api.dir(interpolated[:dir_to_watch])
|
||||
api = DropboxAPI.new(interpolated['access_token'])
|
||||
current_contents = api.dir(interpolated['dir_to_watch'])
|
||||
diff = DropboxDirDiff.new(previous_contents, current_contents)
|
||||
create_event(payload: diff.to_hash) unless previous_contents.nil? || diff.empty?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue