capper 2.0.0.pre3 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capper/delayed_job.rb +6 -6
- data/lib/capper/thin.rb +1 -1
- data/lib/capper/version.rb +1 -1
- metadata +2 -2
data/lib/capper/delayed_job.rb
CHANGED
@@ -3,10 +3,10 @@ _cset(:delayed_job_workers, {})
|
|
3
3
|
|
4
4
|
# these cannot be overriden
|
5
5
|
set(:delayed_job_script) { File.join(bin_path, "delayed_job") }
|
6
|
-
set(:delayed_job_service) { File.join(units_path, "delayed_job
|
6
|
+
set(:delayed_job_service) { File.join(units_path, "delayed_job@.service") }
|
7
7
|
|
8
8
|
after "deploy:update_code", "delayed_job:setup"
|
9
|
-
after "deploy:restart", "delayed_job:
|
9
|
+
after "deploy:restart", "delayed_job:restart"
|
10
10
|
after "deploy:start", "delayed_job:start"
|
11
11
|
after "deploy:stop", "delayed_job:stop"
|
12
12
|
|
@@ -20,28 +20,28 @@ namespace :delayed_job do
|
|
20
20
|
delayed_job_service,
|
21
21
|
:mode => "0755")
|
22
22
|
systemctl "daemon-reload"
|
23
|
-
|
23
|
+
delayed_job_workers.each do |name|
|
24
24
|
systemctl :enable, "delayed_job@#{name}"
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
28
|
desc "Start delayed job workers"
|
29
29
|
task :start, :roles => :app, :except => { :no_release => true } do
|
30
|
-
|
30
|
+
delayed_job_workers.each do |name|
|
31
31
|
systemctl :start, "delayed_job@#{name}"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
desc "Stop delayed job workers"
|
36
36
|
task :stop, :roles => :app, :except => { :no_release => true } do
|
37
|
-
|
37
|
+
delayed_job_workers.each do |name|
|
38
38
|
systemctl :stop, "delayed_job@#{name}"
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
42
|
desc "Restart delayed job workers"
|
43
43
|
task :restart, :roles => :app, :except => { :no_release => true } do
|
44
|
-
|
44
|
+
delayed_job_workers.each do |name|
|
45
45
|
systemctl :restart, "delayed_job@#{name}"
|
46
46
|
end
|
47
47
|
end
|
data/lib/capper/thin.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# these cannot be overriden
|
2
2
|
set(:thin_script) { File.join(bin_path, "thin") }
|
3
|
-
set(:thin_service) { File.join(
|
3
|
+
set(:thin_service) { File.join(units_path, "thin.service") }
|
4
4
|
set(:thin_pidfile) { File.join(pid_path, "thin.pid") }
|
5
5
|
|
6
6
|
_cset(:thin_port, 3000)
|
data/lib/capper/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc1
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erubis
|