capistrano_multiconfig_parallel 0.1.0 → 0.1.1
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: 7a30b233e5f7beece5619288c0e1a1ef76d07732
|
4
|
+
data.tar.gz: d55a513c318de79c2a6b48d5f3ad7ad5aa5dd6fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 969514ddfa7cf94e6e6f53cfa14e8d52ccd6cf08685030503b44a17371ea08056df48c34ecd562c7db5c8ef1264ba4570d4f31bf9379b824b373e764d7acbe0c
|
7
|
+
data.tar.gz: 30f200926251cb95ab733aa181bc55601093e2e72dbec8d7e382b47eabcaa91763b1dc8ee44aadc83e8ed414fd3cbf09569b6530f7972466fe0a821c32f40bb3
|
@@ -87,11 +87,11 @@ module CapistranoMulticonfigParallel
|
|
87
87
|
try_detect_capfile
|
88
88
|
end
|
89
89
|
end
|
90
|
-
|
90
|
+
|
91
91
|
def try_detect_capfile
|
92
92
|
root = Pathname.new(FileUtils.pwd)
|
93
93
|
root = root.parent unless root.directory?
|
94
|
-
root = root.parent until
|
94
|
+
root = root.parent until root.children.find{|f| f.file? && f.basename.to_s.downcase == "capfile"}.present? || root.root?
|
95
95
|
raise "Can't detect Rails application root" if root.root?
|
96
96
|
root
|
97
97
|
end
|
@@ -13,9 +13,10 @@ module CapistranoMulticonfigParallel
|
|
13
13
|
command_line_params.each do |param|
|
14
14
|
@config.define param[:name], type: param[:type], description: param[:description], default: param[:default]
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
@config.read config_file if File.file?(config_file)
|
18
|
-
|
18
|
+
@config.merge(Settings.use(:commandline).resolve!)
|
19
|
+
|
19
20
|
@config.use :config_block
|
20
21
|
@config.finally do |c|
|
21
22
|
check_configuration(c)
|