eycap 0.5.13 → 0.5.14
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/History.txt +3 -0
- data/Manifest.txt +1 -0
- data/README.txt +1 -1
- data/lib/eycap/recipes.rb +1 -0
- data/lib/eycap/recipes/resque.rb +17 -0
- metadata +6 -5
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
|
@@ -44,7 +44,7 @@ set :deploy_via, :filtered_remote_cache
|
|
|
44
44
|
|
|
45
45
|
== LICENSE:
|
|
46
46
|
|
|
47
|
-
Copyright (c) 2008-
|
|
47
|
+
Copyright (c) 2008-2011 Engine Yard
|
|
48
48
|
|
|
49
49
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
50
50
|
a copy of this software and associated documentation files (the
|
data/lib/eycap/recipes.rb
CHANGED
|
@@ -17,6 +17,7 @@ require 'eycap/recipes/passenger'
|
|
|
17
17
|
require 'eycap/recipes/apache'
|
|
18
18
|
require 'eycap/recipes/bundler'
|
|
19
19
|
require 'eycap/recipes/ssl'
|
|
20
|
+
require 'eycap/recipes/delayed_job'
|
|
20
21
|
|
|
21
22
|
Capistrano::Configuration.instance(:must_exist).load do
|
|
22
23
|
default_run_options[:pty] = true if respond_to?(:default_run_options)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
|
2
|
+
|
|
3
|
+
namespace :resque do
|
|
4
|
+
desc "After deploy:restart we want to restart the workers"
|
|
5
|
+
task :restart, :roles => [:app], :only => {:resque => true} do
|
|
6
|
+
run "monit restart all -g resque_#{application}"
|
|
7
|
+
end
|
|
8
|
+
after "deploy:restart","resque:restart"
|
|
9
|
+
|
|
10
|
+
desc "After update_code we want to symlink the resque.yml"
|
|
11
|
+
task :symlink, :roles => [:app], :only => {:resque => true} do
|
|
12
|
+
run "if [ -f #{shared_path}/config/resque.yml ]; then ln -nfs #{shared_path}/config/resque.yml #{latest_release}/config/resque.yml; fi"
|
|
13
|
+
end
|
|
14
|
+
after "deploy:update_code", "resque:symlink"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eycap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 14
|
|
10
|
+
version: 0.5.14
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Engine Yard
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-04-06 00:00:00 -06:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -90,6 +90,7 @@ files:
|
|
|
90
90
|
- lib/eycap/recipes/apache.rb
|
|
91
91
|
- lib/eycap/recipes/delayed_job.rb
|
|
92
92
|
- lib/eycap/recipes/bundler.rb
|
|
93
|
+
- lib/eycap/recipes/resque.rb
|
|
93
94
|
- test/test_eycap.rb
|
|
94
95
|
- test/test_helper.rb
|
|
95
96
|
has_rdoc: true
|
|
@@ -123,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
124
|
requirements: []
|
|
124
125
|
|
|
125
126
|
rubyforge_project: eycap
|
|
126
|
-
rubygems_version: 1.
|
|
127
|
+
rubygems_version: 1.6.2
|
|
127
128
|
signing_key:
|
|
128
129
|
specification_version: 2
|
|
129
130
|
summary: Capistrano tasks for Engine Yard private cloud.
|