Permalink
Browse files

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

… set the environment.
  • Loading branch information...
1 parent 67f81c5 commit b4ec063110118724186db3ceb3f7e1b51d2c2827 @emmanuel committed Dec 4, 2009
Showing with 0 additions and 44 deletions.
  1. +0 −27 cookbooks/whenever/recipes/default.rb
  2. +0 −17 cookbooks/whenever/templates/default/schedule.rb.erb
@@ -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
@@ -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

0 comments on commit b4ec063

Please sign in to comment.