Method: Chef::Resource::Cron#initialize
- Defined in:
- lib/chef/resource/cron.rb
#initialize(name, run_context = nil) ⇒ Cron
Returns a new instance of Cron.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/chef/resource/cron.rb', line 25 def initialize(name, run_context=nil) super @resource_name = :cron @action = :create @allowed_actions.push(:create, :delete) @minute = "*" @hour = "*" @day = "*" @month = "*" @weekday = "*" @command = nil @user = "root" @mailto = nil @path = nil @shell = nil @home = nil end |