module Crntb::Outputer::ChefCron
Public Class Methods
build(entry)
click to toggle source
# File lib/crntb/outputer/chef_cron.rb, line 5 def build(entry) fields = entry.cron_definition.split(/\s/, 5) <<EOS cron 'exec_#{entry.command}' do minute "#{fields[0]}" hour "#{fields[1]}" day "#{fields[2]}" month "#{fields[3]}" weekday "#{fields[4]}" command "#{entry.command}" end EOS end