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: a646a466d0cfc472e1aba31dce5855e8c9a2bc1c
4
- data.tar.gz: 24a759657de0fa0e4ca653abd5ab80a641fd5e83
3
+ metadata.gz: e4a7cd20cb599b998f8ebec2c19686f049f59fe2
4
+ data.tar.gz: ca3a881f356d4d92f30de5b03fb782f9e47d4a27
5
5
  SHA512:
6
- metadata.gz: 8a255e96f276b0faa9879855e5b58d95f942a816bcceec42d8ef1a52bfc0318c3ff4a6759cc124b1ab33647f5fdbb7e8cd4af9a87336ae40f619a0ad2223450e
7
- data.tar.gz: 388f54b94cbc9f198180cde935a66e4e9ae217990ee59174f01d416dceb534073b557aed8817c54d860e93df832d52a90c6e201e835b69d5279f155535f48472
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('stage', 'development')
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
- command = "bundle exec cap #{app}:#{stage} #{action} #{arguments}"
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
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 11
11
- TINY = 5
11
+ TINY = 6
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.5
4
+ version: 0.11.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada