auto_cron 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/auto_cron.gemspec +1 -1
- data/lib/capistrano/auto_cron.rb +2 -12
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.13
|
data/auto_cron.gemspec
CHANGED
data/lib/capistrano/auto_cron.rb
CHANGED
@@ -1,17 +1,7 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
2
|
namespace :auto_cron do
|
3
|
-
|
4
|
-
|
5
|
-
task :publish_crons, :roles => :publish_crons do
|
6
|
-
find_servers_for_task( current_task ).each do |sd|
|
7
|
-
establish_connections_to( sd )
|
8
|
-
targets = []
|
9
|
-
targets.push sessions[sd]
|
10
|
-
Command.process( "cd #{release_path} && #{rake} TEMPLATES=#{sd.options[:crontabs].join(",")} APPLICATION=#{application} RAILS_ENV=#{rails_env} auto_cron",
|
11
|
-
targets, options.merge(:logger => logger), &block)
|
12
|
-
|
13
|
-
logger.debug "creating crontabs: #{sd.options[:crontabs].join(", ")} on #{sd.host}"
|
14
|
-
end
|
3
|
+
task :publish, :roles => :publish do
|
4
|
+
run "cd #{release_path} && #{rake} TEMPLATES=#{fetch(:auto_cron_templates, %w( publish )).join(",")} APPLICATION=#{application} RAILS_ENV=#{rails_env} auto_cron"
|
15
5
|
end
|
16
6
|
end
|
17
7
|
end
|
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: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 13
|
10
|
+
version: 0.1.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Farrill
|