capistrano-psw 1.0.0.pre15 → 1.0.0.pre16
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62f251fcd42ad327b38073d97e92d287b13eae9c
|
4
|
+
data.tar.gz: 5fcc70c1c08e94f41b4863cd19597e2661edfc85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37bedeca93357a000f7cf7e491bcedcae18e3f356ddfce71d78f835d087287ee8e680436598b9dd90145feb44c9d78b980a3afbb92c7faf9dc63b72fa029c5ac
|
7
|
+
data.tar.gz: 20204eb5075ed68b824465678ef25e62ece901f5312197ffa7ae7320a9c1ae04cd9fa16734600b34339aa1ac054dce885c7dab85746e0f23f9711828b9e06e79
|
@@ -52,16 +52,16 @@ namespace :psw_clockwork do
|
|
52
52
|
fetch(:rails_env, false) ? "RAILS_ENV=#{fetch(:rails_env)}" : ''
|
53
53
|
end
|
54
54
|
|
55
|
-
def
|
55
|
+
def cap_current_path
|
56
56
|
fetch(:current_path, '')
|
57
57
|
end
|
58
58
|
|
59
59
|
def log_file
|
60
|
-
fetch(:psw_clockwork_log_file, "#{
|
60
|
+
fetch(:psw_clockwork_log_file, "#{cap_current_path}/log/clockwork.log")
|
61
61
|
end
|
62
62
|
|
63
63
|
def pid_file
|
64
|
-
fetch(:psw_clockwork_pid_file, "#{
|
64
|
+
fetch(:psw_clockwork_pid_file, "#{cap_current_path}/tmp/pids/clockwork.pid")
|
65
65
|
end
|
66
66
|
|
67
67
|
def config_file
|
@@ -72,7 +72,7 @@ namespace :psw_clockwork do
|
|
72
72
|
task :start do
|
73
73
|
on roles(:all) do |host|
|
74
74
|
info "Preparing to start clockwork server(s)..."
|
75
|
-
execute "daemon --inherit --name=clockwork --env='#{rails_env}' --output=#{log_file} --pidfile=#{pid_file} -D #{
|
75
|
+
execute "daemon --inherit --name=clockwork --env='#{rails_env}' --output=#{log_file} --pidfile=#{pid_file} -D #{cap_current_path} -- bundle exec clockwork #{config_file}"
|
76
76
|
info "Finished starting all clockwork server(s)"
|
77
77
|
end
|
78
78
|
end
|
@@ -81,7 +81,7 @@ namespace :psw_clockwork do
|
|
81
81
|
task :stop do
|
82
82
|
on roles(:all) do |host|
|
83
83
|
info "Looking for any running clockwork server(s)..."
|
84
|
-
execute "if [ -d #{
|
84
|
+
execute "if [ -d #{cap_current_path} ] && [ -f #{pid_file} ]; then cd #{cap_current_path} && kill -INT `cat #{pid_file}` ; fi"
|
85
85
|
info "Finished stopping all clockwork server(s)"
|
86
86
|
end
|
87
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-psw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.pre16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lexmark International Technology S.A
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|