capistrano_multiconfig_parallel 0.11.5 → 0.11.6
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: e4a7cd20cb599b998f8ebec2c19686f049f59fe2
|
4
|
+
data.tar.gz: ca3a881f356d4d92f30de5b03fb782f9e47d4a27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aa25b8efb3e8309cec70a66925081de674d0e46a53fbe3362ecbf4355afa5434cd7679dc96c76243e79270fa437c42c5094e78913e758219339231bac8abfa9
|
7
|
+
data.tar.gz: 24c27828fb517f38eddb2324d3915a5241098a9558d94e6d2de5133e0509471359fa48854590113d1bd6ba7c457d5a924e14c1ceecbda0b95d6b9fc1c16df439
|
@@ -7,19 +7,20 @@ module CapistranoMulticonfigParallel
|
|
7
7
|
def self.setup_command_line_standard(options)
|
8
8
|
opts = ''
|
9
9
|
options.each do |key, value|
|
10
|
-
opts << "#{key}=#{value}" if value.present?
|
10
|
+
opts << "#{key}=#{value} " if value.present?
|
11
11
|
end
|
12
12
|
opts
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.execute_standard_deploy(options)
|
16
16
|
app = options.fetch('app', '')
|
17
|
-
stage = options.fetch('
|
17
|
+
stage = options.fetch('env', 'development')
|
18
18
|
action_name = options.fetch('action', 'deploy')
|
19
19
|
action = "#{action_name}[#{options.fetch('task_arguments:', []).join(',')}]"
|
20
20
|
arguments = setup_command_line_standard(options.fetch('env_options', {}))
|
21
|
-
|
22
|
-
|
21
|
+
job_stage = app.present? ? "#{app}:#{stage}" : "#{stage}"
|
22
|
+
|
23
|
+
command = "bundle exec cap #{job_stage} #{action} #{arguments}"
|
23
24
|
puts("\n\n\n Executing '#{command}' \n\n\n .")
|
24
25
|
sh("#{command}")
|
25
26
|
rescue => ex
|