capistrano-strategy-copy-bundled 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -86,14 +86,14 @@ module Capistrano
|
|
86
86
|
bundle_gemfile = configuration[:bundle_gemfile] || File.join("Gemfile")
|
87
87
|
bundle_without = [*(configuration[:bundle_without] || [:development, :test])].compact
|
88
88
|
|
89
|
-
args = ["--gemfile #{
|
89
|
+
args = ["--gemfile #{bundle_gemfile}"]
|
90
90
|
args << "--path #{bundle_dir}" unless bundle_dir.to_s.empty?
|
91
91
|
args << bundle_flags.to_s
|
92
92
|
args << "--without #{bundle_without.join(" ")}" unless bundle_without.empty?
|
93
93
|
|
94
94
|
cmd = "#{bundle_cmd} install #{args.join(' ')}"
|
95
95
|
Dir.chdir(destination) do
|
96
|
-
defined?(
|
96
|
+
defined?(Bundler) ? with_original_env { system(cmd) } : system(cmd)
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|