Method: Inspec::Resources::Crontab#initialize
- Defined in:
- lib/resources/crontab.rb
#initialize(user = nil) ⇒ Crontab
Returns a new instance of Crontab.
34 35 36 37 38 39 |
# File 'lib/resources/crontab.rb', line 34 def initialize(user = nil) @user = user @params = read_crontab return skip_resource 'The `crontab` resource is not supported on your OS.' unless inspec.os.unix? end |