auto_cron 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/auto_cron.gemspec +1 -1
- data/lib/capistrano/auto_cron.rb +4 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/auto_cron.gemspec
CHANGED
data/lib/capistrano/auto_cron.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
2
|
namespace :auto_cron do
|
3
3
|
task :publish, :roles => :publish do
|
4
|
-
run "cd #{
|
4
|
+
run "cd #{current_path} && rake TEMPLATE=publish APPLICATION=#{application} RAILS_ENV=#{rails_env} auto_cron"
|
5
5
|
end
|
6
6
|
|
7
|
-
desc "Connects to each box
|
7
|
+
desc "Connects to each box individually and installs the specified cron
|
8
8
|
USAGE:: role :publish_cron, 'prilb', :crontab => 'cron' "
|
9
9
|
task :publish_crons, :roles => :publish_cron do
|
10
10
|
find_servers_for_task( current_task ).each do |sd|
|
11
11
|
establish_connections_to( sd )
|
12
12
|
targets = []
|
13
13
|
targets.push sessions[sd]
|
14
|
-
|
15
|
-
Command.process( "cd #{
|
14
|
+
|
15
|
+
Command.process( "cd #{current_path} && rake TEMPLATE=#{sd.options[:crontab]} RAILS_ENV=#{rails_env} auto_cron",
|
16
16
|
targets, options.merge(:logger => logger), &block)
|
17
17
|
|
18
18
|
logger.debug "creating crontab:#{sd.options[:crontab]} on #{sd.host}"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_cron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Farrill
|