Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed whenever cookbook. Turns out its not so absurdly difficult to…

… set the environment.
  • Loading branch information...
commit b4ec063110118724186db3ceb3f7e1b51d2c2827 1 parent 67f81c5
@emmanuel authored
View
27 cookbooks/whenever/recipes/default.rb
@@ -1,27 +0,0 @@
-#
-# Cookbook Name:: whenever
-# Recipe:: default
-#
-# Whenever defaults to production mode, so we generate a config file
-if ['solo', 'app', 'app_master'].include?(node[:instance_role])
- app_name = "NavigatingCancer"
-
- directory "/data/#{app_name}/shared/config" do
- recursive true
- owner node[:owner_name]
- group node[:owner_name]
- mode 0755
- end
-
- template "/data/#{app_name}/shared/config/schedule.rb" do
- source "schedule.rb.erb"
- owner "navi"
- group "navi"
- mode 0644
- variables({
- :app_name => app_name,
- :rails_env => @node[:environment][:framework_env],
- })
- end
-
-end
View
17 cookbooks/whenever/templates/default/schedule.rb.erb
@@ -1,17 +0,0 @@
-set :environment, :"<%= rails_env %>"
-
-every 7.days, :at => '2:34 am' do
- runner "Activity.send_weekly_digests"
-end
-
-every 1.day, :at => '1:34 am' do
- runner "Activity.send_daily_digests"
-end
-
-every 1.day do
- rake "thinking_sphinx:index"
-end
-
-every :reboot do
- rake "thinking_sphinx:index"
-end
Please sign in to comment.
Something went wrong with that request. Please try again.