capsum 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/capsum.gemspec +1 -1
- data/lib/capsum/whenever.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/capsum.gemspec
CHANGED
data/lib/capsum/whenever.rb
CHANGED
@@ -3,14 +3,14 @@ require File.expand_path("../../capsum.rb", __FILE__)
|
|
3
3
|
Capistrano::Configuration.instance(true).load do
|
4
4
|
namespace :whenever do
|
5
5
|
desc 'Update the crontab'
|
6
|
-
task :update, :roles => :
|
6
|
+
task :update, :roles => :app do
|
7
7
|
command = "if [ -e #{current_path}/config/schedule.rb ]; then cd #{current_path}; RAILS_ENV=#{rails_env} whenever --update-crontab #{application} --set primary=%s; fi"
|
8
8
|
run (command % true), :only => { :primary => true }
|
9
9
|
run (command % false), :except => { :primary => true }
|
10
10
|
end
|
11
11
|
|
12
12
|
desc 'Cleanup the crontab'
|
13
|
-
task :cleanup, :roles => :
|
13
|
+
task :cleanup, :roles => :app do
|
14
14
|
run "if [ -e #{current_path}/config/schedule.rb ]; then cd #{current_path}; RAILS_ENV=#{rails_env} whenever --update-crontab #{application} --load-file /dev/null; fi"
|
15
15
|
end
|
16
16
|
end
|
metadata
CHANGED