nesquena-cap-recipes 0.3.15 → 0.3.16
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/README.textile
CHANGED
@@ -13,6 +13,7 @@ Currently included:
|
|
13
13
|
* Juggernaut Daemon
|
14
14
|
* Backgroundrb Server
|
15
15
|
* DelayedJob Worker
|
16
|
+
* Whenever Cron Scheduling
|
16
17
|
|
17
18
|
h2. INSTALLATION
|
18
19
|
|
@@ -29,7 +30,7 @@ Include into your deploy.rb configuration file for Capistrano:
|
|
29
30
|
# use a single slice of the deployment process
|
30
31
|
# (use hooks which tie all the recipes into the deployment process,
|
31
32
|
# tasks for managing and tasks for installing):
|
32
|
-
# substitute memcache with: passenger, rails, apache, backgroundrb, delayed_job, juggernaut
|
33
|
+
# substitute memcache with: passenger, rails, apache, backgroundrb, delayed_job, juggernaut, whenever
|
33
34
|
require 'cap_recipes/tasks/memcache'
|
34
35
|
|
35
36
|
# OR
|
@@ -225,7 +226,26 @@ h5. install.rb
|
|
225
226
|
h5. hooks
|
226
227
|
|
227
228
|
after "deploy:restart", "memcache:restart" # clear cache after updating code
|
228
|
-
|
229
|
+
|
230
|
+
h3. Whenever
|
231
|
+
|
232
|
+
These recipes are for managing whenever cron job scheduling
|
233
|
+
|
234
|
+
h4. Configuration
|
235
|
+
|
236
|
+
* None necessary yet
|
237
|
+
|
238
|
+
h4. Tasks
|
239
|
+
|
240
|
+
h5. manage.rb
|
241
|
+
|
242
|
+
whenever
|
243
|
+
:update_crontab
|
244
|
+
|
245
|
+
h5. hooks
|
246
|
+
|
247
|
+
after "deploy:symlink", "whenever:update_crontab"
|
248
|
+
|
229
249
|
h2. EXAMPLE
|
230
250
|
|
231
251
|
Here is a sample deploy.rb file using cap_recipes:
|
data/VERSION.yml
CHANGED
data/cap-recipes.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{cap-recipes}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.16"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Nathan Esquenazi"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-06-02}
|
10
10
|
s.description = %q{Battle-tested capistrano recipes for passenger, apache, delayed_job, juggernaut, backgroundrb, rails and more}
|
11
11
|
s.email = %q{nesquena@gmail.com}
|
12
12
|
s.extra_rdoc_files = [
|
@@ -43,6 +43,9 @@ Gem::Specification.new do |s|
|
|
43
43
|
"lib/cap_recipes/tasks/rails.rb",
|
44
44
|
"lib/cap_recipes/tasks/rails/hooks.rb",
|
45
45
|
"lib/cap_recipes/tasks/rails/manage.rb",
|
46
|
+
"lib/cap_recipes/tasks/whenever.rb",
|
47
|
+
"lib/cap_recipes/tasks/whenever/hooks.rb",
|
48
|
+
"lib/cap_recipes/tasks/whenever/manage.rb",
|
46
49
|
"lib/cap_recipes/tasks/with_scope.rb",
|
47
50
|
"spec/cap/all/Capfile",
|
48
51
|
"spec/cap/helper.rb",
|
@@ -52,7 +55,7 @@ Gem::Specification.new do |s|
|
|
52
55
|
s.homepage = %q{http://github.com/nesquena/cap-recipes}
|
53
56
|
s.rdoc_options = ["--charset=UTF-8"]
|
54
57
|
s.require_paths = ["lib"]
|
55
|
-
s.rubygems_version = %q{1.3.
|
58
|
+
s.rubygems_version = %q{1.3.4}
|
56
59
|
s.summary = %q{Battle-tested capistrano recipes for passenger, delayed_job, and more}
|
57
60
|
s.test_files = [
|
58
61
|
"spec/cap/helper.rb",
|
@@ -1,9 +1,4 @@
|
|
1
1
|
Capistrano::Configuration.instance(true).load do
|
2
|
-
|
3
|
-
# ===============================================================
|
4
|
-
# SERVER MANAGEMENT
|
5
|
-
# ===============================================================
|
6
|
-
|
7
2
|
namespace :memcache do
|
8
3
|
|
9
4
|
desc 'Installs memcache and the ruby gem'
|
@@ -0,0 +1 @@
|
|
1
|
+
Dir[File.join(File.dirname(__FILE__), 'whenever/*.rb')].sort.each { |lib| require lib }
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'cap_recipes/tasks/with_scope.rb'
|
2
|
+
|
3
|
+
Capistrano::Configuration.instance(true).load do
|
4
|
+
namespace :whenever do
|
5
|
+
desc "Update the crontab file"
|
6
|
+
task :update_crontab, :roles => :db do
|
7
|
+
run "cd #{release_path} && whenever --update-crontab #{application}"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nesquena-cap-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Esquenazi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -52,6 +52,9 @@ files:
|
|
52
52
|
- lib/cap_recipes/tasks/rails.rb
|
53
53
|
- lib/cap_recipes/tasks/rails/hooks.rb
|
54
54
|
- lib/cap_recipes/tasks/rails/manage.rb
|
55
|
+
- lib/cap_recipes/tasks/whenever.rb
|
56
|
+
- lib/cap_recipes/tasks/whenever/hooks.rb
|
57
|
+
- lib/cap_recipes/tasks/whenever/manage.rb
|
55
58
|
- lib/cap_recipes/tasks/with_scope.rb
|
56
59
|
- spec/cap/all/Capfile
|
57
60
|
- spec/cap/helper.rb
|