capistrano-sidekiq-sic 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/sidekiq/version.rb +1 -1
- data/lib/capistrano/tasks/sidekiq.cap +4 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fe77e5cd188fac48600b14b732f301829273bb2
|
4
|
+
data.tar.gz: ad2f8bd6c3e5053b0e2656ee994055c7a0462eef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 466987a7fd3ce7ddaa7983af4bde11f9f777875f99282aa241c22e290304623283ff59c10f125b67d3267abafcde2fedb7f51bd5d01acc86d36ce3c602544470
|
7
|
+
data.tar.gz: d83227a3d82fe9559a4faac58bfb1e095f5dbe81f264501f832c4851bfba9e3444e97a8b8ef8f5d9169654915046438db80a7a0e3d039a53b6c083508c79e07d
|
@@ -42,14 +42,13 @@ namespace :sidekiq do
|
|
42
42
|
|
43
43
|
run_in_background = options.delete(:background)
|
44
44
|
|
45
|
-
|
46
|
-
command = "bash -l -c \"#{args.join(' ')}\""
|
45
|
+
command = [:bash, '-l', '-c', "\"#{args.join(' ')}\""]
|
47
46
|
|
47
|
+
cmd = []
|
48
48
|
if sidekiq_user = fetch(:sidekiq_user)
|
49
|
-
cmd += [:sudo, '-u', sidekiq_user
|
50
|
-
else
|
51
|
-
cmd += args
|
49
|
+
cmd += [:sudo, '-u', sidekiq_user]
|
52
50
|
end
|
51
|
+
cmd += command
|
53
52
|
|
54
53
|
within release_path do
|
55
54
|
with rails_env: fetch(:rails_env) do
|