diff options
Diffstat (limited to 'lib/chef/resource/cron.rb')
-rw-r--r-- | lib/chef/resource/cron.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/cron.rb b/lib/chef/resource/cron.rb index 7a4e3f6988..3ae9409756 100644 --- a/lib/chef/resource/cron.rb +++ b/lib/chef/resource/cron.rb @@ -17,7 +17,7 @@ # limitations under the License. # -require 'chef/resource' +require "chef/resource" class Chef class Resource @@ -123,7 +123,7 @@ class Chef end begin error_message = "You provided '#{arg}' as a weekday, acceptable values are " - error_message << Provider::Cron::WEEKDAY_SYMBOLS.map {|sym| ":#{sym}"}.join(', ') + error_message << Provider::Cron::WEEKDAY_SYMBOLS.map {|sym| ":#{sym}"}.join(", ") error_message << " and a string in crontab format" if (arg.is_a?(Symbol) && !Provider::Cron::WEEKDAY_SYMBOLS.include?(arg)) || (!arg.is_a?(Symbol) && integerize(arg) > 7) || |