-
-
Save jbyck/5340651 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: whenever | |
# Recipe:: default | |
# | |
ey_cloud_report "whenever" do | |
message "starting whenever recipe" | |
end | |
# Set your application name here | |
appname = "therapylogs" | |
if ['solo', 'util'].include?(node[:instance_role]) | |
# be sure to replace "app_name" with the name of your application. | |
local_user = node[:users].first | |
execute "whenever" do | |
cwd "/data/#{appname}/current" | |
user local_user[:username] | |
command "whenever --update-crontab '#{appname}_#{node[:environment][:framework_env]}'" | |
action :run | |
end | |
ey_cloud_report "whenever" do | |
message "whenever recipe complete" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment