summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorantima-gupta <agupta@msystechnologies.com>2020-05-13 13:55:37 +0530
committerantima-gupta <agupta@msystechnologies.com>2020-06-10 10:51:40 +0530
commit22d38547a8db55c1a579c1e939253ad526a158cd (patch)
treee7e0c8947c14132a2d19ca2fd7e1137cb1ac36f1 /lib/chef/resource
parentd119c901aa3aa79d91f9ade440066e85b0d8867d (diff)
downloadchef-22d38547a8db55c1a579c1e939253ad526a158cd.tar.gz
removed cron helper files
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/helpers/cron.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/chef/resource/helpers/cron.rb b/lib/chef/resource/helpers/cron.rb
deleted file mode 100644
index 78c3e09b38..0000000000
--- a/lib/chef/resource/helpers/cron.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-class Chef
- module ResourceHelpers
- module Cron
-
- WEEKDAYS = {
- sunday: "0", monday: "1", tuesday: "2", wednesday: "3", thursday: "4", friday: "5", saturday: "6",
- sun: "0", mon: "1", tue: "2", wed: "3", thu: "4", fri: "5", sat: "6"
- }.freeze
-
- # Convert weekday input value into crontab format that
- # could be written in the crontab
- # @return [Integer, String] A weekday formed as per the user inputs.
- def weekday_in_crontab(wday)
- weekday = wday.to_s.downcase.to_sym
- weekday_in_crontab = WEEKDAYS[weekday] || wday
- end
-
- extend self
- end
- end
-end