nesquena-cap-recipes 0.3.9 → 0.3.11
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/.gitignore +3 -0
- data/VERSION.yml +1 -1
- data/cap-recipes.gemspec +72 -0
- data/lib/cap_recipes/tasks/delayed_job/manage.rb +5 -1
- data/lib/cap_recipes/tasks/memcache/manage.rb +2 -6
- metadata +5 -3
data/.gitignore
ADDED
data/VERSION.yml
CHANGED
data/cap-recipes.gemspec
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{cap-recipes}
|
5
|
+
s.version = "0.3.11"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Nathan Esquenazi"]
|
9
|
+
s.date = %q{2009-05-19}
|
10
|
+
s.description = %q{Battle-tested capistrano recipes for passenger, apache, and more}
|
11
|
+
s.email = %q{nesquena@gmail.com}
|
12
|
+
s.extra_rdoc_files = [
|
13
|
+
"LICENSE",
|
14
|
+
"README.textile"
|
15
|
+
]
|
16
|
+
s.files = [
|
17
|
+
".gitignore",
|
18
|
+
"LICENSE",
|
19
|
+
"README.textile",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION.yml",
|
22
|
+
"cap-recipes.gemspec",
|
23
|
+
"lib/cap_recipes.rb",
|
24
|
+
"lib/cap_recipes/tasks/apache.rb",
|
25
|
+
"lib/cap_recipes/tasks/apache/install.rb",
|
26
|
+
"lib/cap_recipes/tasks/apache/manage.rb",
|
27
|
+
"lib/cap_recipes/tasks/backgroundrb.rb",
|
28
|
+
"lib/cap_recipes/tasks/backgroundrb/hooks.rb",
|
29
|
+
"lib/cap_recipes/tasks/backgroundrb/manage.rb",
|
30
|
+
"lib/cap_recipes/tasks/delayed_job.rb",
|
31
|
+
"lib/cap_recipes/tasks/delayed_job/hooks.rb",
|
32
|
+
"lib/cap_recipes/tasks/delayed_job/manage.rb",
|
33
|
+
"lib/cap_recipes/tasks/juggernaut.rb",
|
34
|
+
"lib/cap_recipes/tasks/juggernaut/hooks.rb",
|
35
|
+
"lib/cap_recipes/tasks/juggernaut/manage.rb",
|
36
|
+
"lib/cap_recipes/tasks/memcache.rb",
|
37
|
+
"lib/cap_recipes/tasks/memcache/hooks.rb",
|
38
|
+
"lib/cap_recipes/tasks/memcache/install.rb",
|
39
|
+
"lib/cap_recipes/tasks/memcache/manage.rb",
|
40
|
+
"lib/cap_recipes/tasks/passenger.rb",
|
41
|
+
"lib/cap_recipes/tasks/passenger/install.rb",
|
42
|
+
"lib/cap_recipes/tasks/passenger/manage.rb",
|
43
|
+
"lib/cap_recipes/tasks/rails.rb",
|
44
|
+
"lib/cap_recipes/tasks/rails/hooks.rb",
|
45
|
+
"lib/cap_recipes/tasks/rails/manage.rb",
|
46
|
+
"lib/cap_recipes/tasks/with_scope.rb",
|
47
|
+
"spec/cap/all/Capfile",
|
48
|
+
"spec/cap/helper.rb",
|
49
|
+
"spec/cap_recipes_spec.rb",
|
50
|
+
"spec/spec_helper.rb"
|
51
|
+
]
|
52
|
+
s.homepage = %q{http://github.com/nesquena/cap-recipes}
|
53
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
54
|
+
s.require_paths = ["lib"]
|
55
|
+
s.rubygems_version = %q{1.3.3}
|
56
|
+
s.summary = %q{Battle-tested capistrano recipes for passenger, apache, and more}
|
57
|
+
s.test_files = [
|
58
|
+
"spec/cap/helper.rb",
|
59
|
+
"spec/cap_recipes_spec.rb",
|
60
|
+
"spec/spec_helper.rb"
|
61
|
+
]
|
62
|
+
|
63
|
+
if s.respond_to? :specification_version then
|
64
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
65
|
+
s.specification_version = 3
|
66
|
+
|
67
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
68
|
+
else
|
69
|
+
end
|
70
|
+
else
|
71
|
+
end
|
72
|
+
end
|
@@ -16,7 +16,11 @@ Capistrano::Configuration.instance(true).load do
|
|
16
16
|
|
17
17
|
desc "Restart delayed_job process"
|
18
18
|
task :restart, :roles => :app do
|
19
|
-
run "cd #{current_path} && #{sudo} #{base_ruby_path}/bin/ruby #{delayed_script_path} restart #{delayed_job_env}"
|
19
|
+
# run "cd #{current_path} && #{sudo} #{base_ruby_path}/bin/ruby #{delayed_script_path} restart #{delayed_job_env}"
|
20
|
+
delayed_job.stop
|
21
|
+
sleep(4)
|
22
|
+
try_sudo "killall -s TERM delayed_job; true"
|
23
|
+
delayed_job.start
|
20
24
|
end
|
21
25
|
end
|
22
26
|
end
|
@@ -1,23 +1,19 @@
|
|
1
1
|
Capistrano::Configuration.instance(true).load do
|
2
2
|
|
3
3
|
set :memcache_init_path, "/etc/init.d/memcached"
|
4
|
-
set :memcache_size, '64'
|
5
|
-
set :memcache_port, '11211'
|
6
|
-
set :memcache_host, '127.0.0.1'
|
7
|
-
set :memcache_user, 'nobody'
|
8
4
|
|
9
5
|
namespace :memcache do
|
10
6
|
|
11
7
|
desc "Stops the memcache server"
|
12
8
|
task :stop, :roles => :app do
|
13
9
|
puts "Stopping the memcache server"
|
14
|
-
try_sudo "killall -s TERM memcached"
|
10
|
+
try_sudo "killall -s TERM memcached; true"
|
15
11
|
end
|
16
12
|
|
17
13
|
desc "Starts the memcache server"
|
18
14
|
task :start, :roles => :app do
|
19
15
|
puts "Starting the memcache server"
|
20
|
-
try_sudo "
|
16
|
+
try_sudo "nohup /etc/init.d/memcached start"
|
21
17
|
end
|
22
18
|
|
23
19
|
desc "Restarts the memcache server"
|
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.11
|
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-05-19 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -23,10 +23,12 @@ extra_rdoc_files:
|
|
23
23
|
- LICENSE
|
24
24
|
- README.textile
|
25
25
|
files:
|
26
|
+
- .gitignore
|
26
27
|
- LICENSE
|
27
28
|
- README.textile
|
28
29
|
- Rakefile
|
29
30
|
- VERSION.yml
|
31
|
+
- cap-recipes.gemspec
|
30
32
|
- lib/cap_recipes.rb
|
31
33
|
- lib/cap_recipes/tasks/apache.rb
|
32
34
|
- lib/cap_recipes/tasks/apache/install.rb
|
@@ -55,7 +57,7 @@ files:
|
|
55
57
|
- spec/cap/helper.rb
|
56
58
|
- spec/cap_recipes_spec.rb
|
57
59
|
- spec/spec_helper.rb
|
58
|
-
has_rdoc:
|
60
|
+
has_rdoc: false
|
59
61
|
homepage: http://github.com/nesquena/cap-recipes
|
60
62
|
post_install_message:
|
61
63
|
rdoc_options:
|