cap-recipes 0.3.36 → 0.3.37
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.yml +2 -2
- data/cap-recipes.gemspec +62 -74
- data/lib/cap_recipes/tasks/mongodb/manage.rb +1 -1
- data/lib/cap_recipes/tasks/rails/manage.rb +2 -2
- metadata +21 -16
- data/.gitignore +0 -3
data/VERSION.yml
CHANGED
data/cap-recipes.gemspec
CHANGED
@@ -1,101 +1,89 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cap-recipes}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.37"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nathan Esquenazi"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-12-20}
|
13
13
|
s.description = %q{Battle-tested capistrano recipes for debian, passenger, apache, delayed_job, juggernaut, rubygems, backgroundrb, rails and more}
|
14
14
|
s.email = %q{nesquena@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.textile"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
"spec/spec_helper.rb"
|
20
|
+
"LICENSE",
|
21
|
+
"README.textile",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION.yml",
|
24
|
+
"cap-recipes.gemspec",
|
25
|
+
"examples/advanced/deploy.rb",
|
26
|
+
"examples/advanced/deploy/experimental.rb",
|
27
|
+
"examples/advanced/deploy/production.rb",
|
28
|
+
"examples/simple/deploy.rb",
|
29
|
+
"lib/cap_recipes.rb",
|
30
|
+
"lib/cap_recipes/tasks/apache.rb",
|
31
|
+
"lib/cap_recipes/tasks/apache/install.rb",
|
32
|
+
"lib/cap_recipes/tasks/apache/manage.rb",
|
33
|
+
"lib/cap_recipes/tasks/aptitude.rb",
|
34
|
+
"lib/cap_recipes/tasks/aptitude/manage.rb",
|
35
|
+
"lib/cap_recipes/tasks/backgroundrb.rb",
|
36
|
+
"lib/cap_recipes/tasks/backgroundrb/hooks.rb",
|
37
|
+
"lib/cap_recipes/tasks/backgroundrb/manage.rb",
|
38
|
+
"lib/cap_recipes/tasks/delayed_job.rb",
|
39
|
+
"lib/cap_recipes/tasks/delayed_job/hooks.rb",
|
40
|
+
"lib/cap_recipes/tasks/delayed_job/manage.rb",
|
41
|
+
"lib/cap_recipes/tasks/gitosis.rb",
|
42
|
+
"lib/cap_recipes/tasks/gitosis/install.rb",
|
43
|
+
"lib/cap_recipes/tasks/juggernaut.rb",
|
44
|
+
"lib/cap_recipes/tasks/juggernaut/hooks.rb",
|
45
|
+
"lib/cap_recipes/tasks/juggernaut/manage.rb",
|
46
|
+
"lib/cap_recipes/tasks/memcache.rb",
|
47
|
+
"lib/cap_recipes/tasks/memcache/hooks.rb",
|
48
|
+
"lib/cap_recipes/tasks/memcache/install.rb",
|
49
|
+
"lib/cap_recipes/tasks/memcache/manage.rb",
|
50
|
+
"lib/cap_recipes/tasks/mongodb.rb",
|
51
|
+
"lib/cap_recipes/tasks/mongodb/install.rb",
|
52
|
+
"lib/cap_recipes/tasks/mongodb/manage.rb",
|
53
|
+
"lib/cap_recipes/tasks/passenger.rb",
|
54
|
+
"lib/cap_recipes/tasks/passenger/install.rb",
|
55
|
+
"lib/cap_recipes/tasks/passenger/manage.rb",
|
56
|
+
"lib/cap_recipes/tasks/rails.rb",
|
57
|
+
"lib/cap_recipes/tasks/rails/hooks.rb",
|
58
|
+
"lib/cap_recipes/tasks/rails/manage.rb",
|
59
|
+
"lib/cap_recipes/tasks/ruby.rb",
|
60
|
+
"lib/cap_recipes/tasks/ruby/install.rb",
|
61
|
+
"lib/cap_recipes/tasks/rubygems.rb",
|
62
|
+
"lib/cap_recipes/tasks/rubygems/install.rb",
|
63
|
+
"lib/cap_recipes/tasks/rubygems/manage.rb",
|
64
|
+
"lib/cap_recipes/tasks/thinking_sphinx.rb",
|
65
|
+
"lib/cap_recipes/tasks/thinking_sphinx/hooks.rb",
|
66
|
+
"lib/cap_recipes/tasks/thinking_sphinx/install.rb",
|
67
|
+
"lib/cap_recipes/tasks/thinking_sphinx/manage.rb",
|
68
|
+
"lib/cap_recipes/tasks/utilities.rb",
|
69
|
+
"lib/cap_recipes/tasks/whenever.rb",
|
70
|
+
"lib/cap_recipes/tasks/whenever/hooks.rb",
|
71
|
+
"lib/cap_recipes/tasks/whenever/manage.rb",
|
72
|
+
"spec/cap/all/Capfile",
|
73
|
+
"spec/cap/helper.rb",
|
74
|
+
"spec/cap_recipes_spec.rb",
|
75
|
+
"spec/spec_helper.rb"
|
77
76
|
]
|
78
77
|
s.homepage = %q{http://github.com/nesquena/cap-recipes}
|
79
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
80
78
|
s.require_paths = ["lib"]
|
81
79
|
s.rubyforge_project = %q{cap-recipes}
|
82
|
-
s.rubygems_version = %q{1.
|
80
|
+
s.rubygems_version = %q{1.6.2}
|
83
81
|
s.summary = %q{Battle-tested capistrano recipes for passenger, delayed_job, and more}
|
84
|
-
s.test_files = [
|
85
|
-
"spec/cap/helper.rb",
|
86
|
-
"spec/cap_recipes_spec.rb",
|
87
|
-
"spec/spec_helper.rb",
|
88
|
-
"examples/advanced/deploy/experimental.rb",
|
89
|
-
"examples/advanced/deploy/production.rb",
|
90
|
-
"examples/advanced/deploy.rb",
|
91
|
-
"examples/simple/deploy.rb"
|
92
|
-
]
|
93
82
|
|
94
83
|
if s.respond_to? :specification_version then
|
95
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
96
84
|
s.specification_version = 3
|
97
85
|
|
98
|
-
if Gem::Version.new(Gem::
|
86
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
99
87
|
else
|
100
88
|
end
|
101
89
|
else
|
@@ -13,7 +13,7 @@ Capistrano::Configuration.instance(true).load do
|
|
13
13
|
desc "Stop the mongodb server"
|
14
14
|
task :stop, :role => :app do
|
15
15
|
pid = capture("ps -o pid,command ax | grep mongod | awk '!/awk/ && !/grep/ {print $1}'")
|
16
|
-
sudo "kill -
|
16
|
+
sudo "kill -INT #{pid}" unless pid.strip.empty?
|
17
17
|
end
|
18
18
|
|
19
19
|
desc "Restart the mongodb server"
|
@@ -38,13 +38,13 @@ Capistrano::Configuration.instance(true).load do
|
|
38
38
|
desc "Clear file-based fragment and action caching"
|
39
39
|
task :log, :roles => :app do
|
40
40
|
puts "Sweeping all the log files"
|
41
|
-
run "cd #{current_path} && #{
|
41
|
+
run "cd #{current_path} && #{try_sudo} rake log:clear RAILS_ENV=production"
|
42
42
|
end
|
43
43
|
|
44
44
|
desc "Clear file-based fragment and action caching"
|
45
45
|
task :cache, :roles => :app do
|
46
46
|
puts "Sweeping the fragment and action cache stores"
|
47
|
-
run "cd #{release_path} && #{
|
47
|
+
run "cd #{release_path} && #{try_sudo} rake tmp:cache:clear RAILS_ENV=production"
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cap-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 89
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 37
|
10
|
+
version: 0.3.37
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Nathan Esquenazi
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-12-20 00:00:00 -08:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -23,7 +29,6 @@ extra_rdoc_files:
|
|
23
29
|
- LICENSE
|
24
30
|
- README.textile
|
25
31
|
files:
|
26
|
-
- .gitignore
|
27
32
|
- LICENSE
|
28
33
|
- README.textile
|
29
34
|
- Rakefile
|
@@ -85,34 +90,34 @@ homepage: http://github.com/nesquena/cap-recipes
|
|
85
90
|
licenses: []
|
86
91
|
|
87
92
|
post_install_message:
|
88
|
-
rdoc_options:
|
89
|
-
|
93
|
+
rdoc_options: []
|
94
|
+
|
90
95
|
require_paths:
|
91
96
|
- lib
|
92
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
93
99
|
requirements:
|
94
100
|
- - ">="
|
95
101
|
- !ruby/object:Gem::Version
|
102
|
+
hash: 3
|
103
|
+
segments:
|
104
|
+
- 0
|
96
105
|
version: "0"
|
97
|
-
version:
|
98
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
99
108
|
requirements:
|
100
109
|
- - ">="
|
101
110
|
- !ruby/object:Gem::Version
|
111
|
+
hash: 3
|
112
|
+
segments:
|
113
|
+
- 0
|
102
114
|
version: "0"
|
103
|
-
version:
|
104
115
|
requirements: []
|
105
116
|
|
106
117
|
rubyforge_project: cap-recipes
|
107
|
-
rubygems_version: 1.
|
118
|
+
rubygems_version: 1.6.2
|
108
119
|
signing_key:
|
109
120
|
specification_version: 3
|
110
121
|
summary: Battle-tested capistrano recipes for passenger, delayed_job, and more
|
111
|
-
test_files:
|
112
|
-
|
113
|
-
- spec/cap_recipes_spec.rb
|
114
|
-
- spec/spec_helper.rb
|
115
|
-
- examples/advanced/deploy/experimental.rb
|
116
|
-
- examples/advanced/deploy/production.rb
|
117
|
-
- examples/advanced/deploy.rb
|
118
|
-
- examples/simple/deploy.rb
|
122
|
+
test_files: []
|
123
|
+
|
data/.gitignore
DELETED