Method: Inspec::Resources::Crontab#read_crontab
- Defined in:
- lib/resources/crontab.rb
#read_crontab ⇒ Object
51 52 53 54 |
# File 'lib/resources/crontab.rb', line 51 def read_crontab ct = is_system_crontab? ? inspec.file(@path).content : inspec.command(crontab_cmd).stdout ct.lines.map { |l| parse_crontab_line(l) }.compact end |