Class: Chef::Resource::Cron

Inherits:
Chef::Resource show all
Defined in:
lib/chef/handler/resources/cron.rb

Instance Method Summary collapse

Instance Method Details

#to_serverspecObject



4
5
6
7
8
9
10
11
# File 'lib/chef/handler/resources/cron.rb', line 4

def to_serverspec
  "\n  describe cron do\n    it { should have_entry('\#{minute} \#{hour} \#{day} \#{month} \#{weekday} \#{command}').with_user('\#{user}') }\n  end\n"
end