Class: Hookit::Resource::Cron

Inherits:
Execute show all
Defined in:
lib/hookit/resource/cron.rb

Instance Attribute Summary

Attributes inherited from Base

#dict

Instance Method Summary collapse

Methods inherited from Execute

#run

Methods inherited from Base

#action, actions, #can_run?, default_action, #default_action, field, #not_if, #only_if, #run

Constructor Details

#initialize(name) ⇒ Cron

Returns a new instance of Cron.



5
6
7
8
9
# File 'lib/hookit/resource/cron.rb', line 5

def initialize(name)
  super
  timeout 60
  cwd '/data'
end