lib/chef/provider/cron.rb in chef-0.9.6 vs lib/chef/provider/cron.rb in chef-0.9.8.beta.1
- old
+ new
@@ -23,10 +23,10 @@
class Chef
class Provider
class Cron < Chef::Provider
include Chef::Mixin::Command
- CRON_PATTERN = /([0-9\*\-\,\/]+)\s*([0-9\*\-\,\/]+)\s*([0-9\*\-\,\/]+)\s*([0-9\*\-\,\/]+)\s*([0-9\*\-\,\/]+)\s*(.*)/
+ CRON_PATTERN = /([-0-9*,\/]+)\s([-0-9*,\/]+)\s([-0-9*,\/]+)\s([-0-9*,\/]+)\s([-0-9*,\/]+)\s(.*)/
def initialize(new_resource, run_context)
super(new_resource, run_context)
@cron_exists = false
@cron_empty = false