capistrano 2.8.0 → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.docker/Dockerfile +7 -0
- data/.docker/ssh_key_rsa +49 -0
- data/.docker/ssh_key_rsa.pub +1 -0
- data/.docker/ubuntu_setup.sh +23 -0
- data/.github/issue_template.md +19 -0
- data/.github/pull_request_template.md +22 -0
- data/.github/release-drafter.yml +25 -0
- data/.github/workflows/ci.yml +80 -0
- data/.github/workflows/release-drafter.yml +18 -0
- data/.gitignore +23 -8
- data/.rubocop.yml +62 -0
- data/CHANGELOG.md +1 -0
- data/CONTRIBUTING.md +63 -0
- data/DEVELOPMENT.md +112 -0
- data/Gemfile +42 -9
- data/LICENSE.txt +21 -0
- data/README.md +221 -0
- data/RELEASING.md +17 -0
- data/Rakefile +17 -8
- data/UPGRADING-3.7.md +86 -0
- data/bin/cap +2 -3
- data/bin/capify +7 -89
- data/capistrano.gemspec +29 -43
- data/docker-compose.yml +8 -0
- data/features/configuration.feature +28 -0
- data/features/deploy.feature +92 -0
- data/features/deploy_failure.feature +17 -0
- data/features/doctor.feature +11 -0
- data/features/installation.feature +21 -0
- data/features/sshconnect.feature +11 -0
- data/features/stage_failure.feature +9 -0
- data/features/step_definitions/assertions.rb +162 -0
- data/features/step_definitions/cap_commands.rb +21 -0
- data/features/step_definitions/setup.rb +91 -0
- data/features/subdirectory.feature +9 -0
- data/features/support/docker_gateway.rb +53 -0
- data/features/support/env.rb +1 -0
- data/features/support/remote_command_helpers.rb +29 -0
- data/features/support/remote_ssh_helpers.rb +33 -0
- data/lib/Capfile +3 -0
- data/lib/capistrano/all.rb +17 -0
- data/lib/capistrano/application.rb +153 -0
- data/lib/capistrano/configuration/empty_filter.rb +9 -0
- data/lib/capistrano/configuration/filter.rb +26 -0
- data/lib/capistrano/configuration/host_filter.rb +29 -0
- data/lib/capistrano/configuration/null_filter.rb +9 -0
- data/lib/capistrano/configuration/plugin_installer.rb +51 -0
- data/lib/capistrano/configuration/question.rb +76 -0
- data/lib/capistrano/configuration/role_filter.rb +29 -0
- data/lib/capistrano/configuration/scm_resolver.rb +149 -0
- data/lib/capistrano/configuration/server.rb +137 -0
- data/lib/capistrano/configuration/servers.rb +56 -96
- data/lib/capistrano/configuration/validated_variables.rb +110 -0
- data/lib/capistrano/configuration/variables.rb +79 -94
- data/lib/capistrano/configuration.rb +178 -33
- data/lib/capistrano/console.rb +1 -0
- data/lib/capistrano/defaults.rb +36 -0
- data/lib/capistrano/deploy.rb +3 -0
- data/lib/capistrano/doctor/environment_doctor.rb +19 -0
- data/lib/capistrano/doctor/gems_doctor.rb +45 -0
- data/lib/capistrano/doctor/output_helpers.rb +79 -0
- data/lib/capistrano/doctor/servers_doctor.rb +105 -0
- data/lib/capistrano/doctor/variables_doctor.rb +74 -0
- data/lib/capistrano/doctor.rb +6 -0
- data/lib/capistrano/dotfile.rb +2 -0
- data/lib/capistrano/dsl/env.rb +43 -0
- data/lib/capistrano/dsl/paths.rb +89 -0
- data/lib/capistrano/dsl/stages.rb +31 -0
- data/lib/capistrano/dsl/task_enhancements.rb +61 -0
- data/lib/capistrano/dsl.rb +95 -0
- data/lib/capistrano/framework.rb +2 -0
- data/lib/capistrano/i18n.rb +46 -0
- data/lib/capistrano/immutable_task.rb +30 -0
- data/lib/capistrano/install.rb +1 -0
- data/lib/capistrano/plugin.rb +95 -0
- data/lib/capistrano/proc_helpers.rb +13 -0
- data/lib/capistrano/scm/git.rb +105 -0
- data/lib/capistrano/scm/hg.rb +55 -0
- data/lib/capistrano/scm/plugin.rb +13 -0
- data/lib/capistrano/scm/svn.rb +56 -0
- data/lib/capistrano/scm/tasks/git.rake +84 -0
- data/lib/capistrano/scm/tasks/hg.rake +53 -0
- data/lib/capistrano/scm/tasks/svn.rake +53 -0
- data/lib/capistrano/scm.rb +115 -0
- data/lib/capistrano/setup.rb +36 -0
- data/lib/capistrano/tasks/console.rake +25 -0
- data/lib/capistrano/tasks/deploy.rake +280 -0
- data/lib/capistrano/tasks/doctor.rake +24 -0
- data/lib/capistrano/tasks/framework.rake +67 -0
- data/lib/capistrano/tasks/install.rake +41 -0
- data/lib/capistrano/templates/Capfile +38 -0
- data/lib/capistrano/templates/deploy.rb.erb +39 -0
- data/lib/capistrano/templates/stage.rb.erb +61 -0
- data/lib/capistrano/upload_task.rb +9 -0
- data/lib/capistrano/version.rb +1 -14
- data/lib/capistrano/version_validator.rb +32 -0
- data/lib/capistrano.rb +0 -3
- data/spec/integration/dsl_spec.rb +632 -0
- data/spec/integration_spec_helper.rb +5 -0
- data/spec/lib/capistrano/application_spec.rb +60 -0
- data/spec/lib/capistrano/configuration/empty_filter_spec.rb +17 -0
- data/spec/lib/capistrano/configuration/filter_spec.rb +109 -0
- data/spec/lib/capistrano/configuration/host_filter_spec.rb +71 -0
- data/spec/lib/capistrano/configuration/null_filter_spec.rb +17 -0
- data/spec/lib/capistrano/configuration/plugin_installer_spec.rb +98 -0
- data/spec/lib/capistrano/configuration/question_spec.rb +92 -0
- data/spec/lib/capistrano/configuration/role_filter_spec.rb +80 -0
- data/spec/lib/capistrano/configuration/scm_resolver_spec.rb +56 -0
- data/spec/lib/capistrano/configuration/server_spec.rb +309 -0
- data/spec/lib/capistrano/configuration/servers_spec.rb +331 -0
- data/spec/lib/capistrano/configuration_spec.rb +357 -0
- data/spec/lib/capistrano/doctor/environment_doctor_spec.rb +44 -0
- data/spec/lib/capistrano/doctor/gems_doctor_spec.rb +67 -0
- data/spec/lib/capistrano/doctor/output_helpers_spec.rb +47 -0
- data/spec/lib/capistrano/doctor/servers_doctor_spec.rb +86 -0
- data/spec/lib/capistrano/doctor/variables_doctor_spec.rb +89 -0
- data/spec/lib/capistrano/dsl/paths_spec.rb +228 -0
- data/spec/lib/capistrano/dsl/task_enhancements_spec.rb +108 -0
- data/spec/lib/capistrano/dsl_spec.rb +125 -0
- data/spec/lib/capistrano/immutable_task_spec.rb +31 -0
- data/spec/lib/capistrano/plugin_spec.rb +84 -0
- data/spec/lib/capistrano/scm/git_spec.rb +194 -0
- data/spec/lib/capistrano/scm/hg_spec.rb +109 -0
- data/spec/lib/capistrano/scm/svn_spec.rb +137 -0
- data/spec/lib/capistrano/scm_spec.rb +103 -0
- data/spec/lib/capistrano/upload_task_spec.rb +19 -0
- data/spec/lib/capistrano/version_validator_spec.rb +118 -0
- data/spec/lib/capistrano_spec.rb +7 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/support/matchers.rb +5 -0
- data/spec/support/tasks/database.rake +11 -0
- data/spec/support/tasks/fail.rake +8 -0
- data/spec/support/tasks/failed.rake +5 -0
- data/spec/support/tasks/plugin.rake +6 -0
- data/spec/support/tasks/root.rake +11 -0
- data/spec/support/test_app.rb +205 -0
- metadata +234 -208
- data/.rvmrc +0 -1
- data/CHANGELOG +0 -954
- data/README.mdown +0 -76
- data/lib/capistrano/callback.rb +0 -45
- data/lib/capistrano/cli/execute.rb +0 -85
- data/lib/capistrano/cli/help.rb +0 -125
- data/lib/capistrano/cli/help.txt +0 -81
- data/lib/capistrano/cli/options.rb +0 -243
- data/lib/capistrano/cli/ui.rb +0 -40
- data/lib/capistrano/cli.rb +0 -47
- data/lib/capistrano/command.rb +0 -286
- data/lib/capistrano/configuration/actions/file_transfer.rb +0 -51
- data/lib/capistrano/configuration/actions/inspect.rb +0 -46
- data/lib/capistrano/configuration/actions/invocation.rb +0 -298
- data/lib/capistrano/configuration/callbacks.rb +0 -148
- data/lib/capistrano/configuration/connections.rb +0 -230
- data/lib/capistrano/configuration/execution.rb +0 -143
- data/lib/capistrano/configuration/loading.rb +0 -197
- data/lib/capistrano/configuration/namespaces.rb +0 -197
- data/lib/capistrano/configuration/roles.rb +0 -73
- data/lib/capistrano/errors.rb +0 -19
- data/lib/capistrano/ext/string.rb +0 -5
- data/lib/capistrano/extensions.rb +0 -57
- data/lib/capistrano/logger.rb +0 -59
- data/lib/capistrano/processable.rb +0 -53
- data/lib/capistrano/recipes/compat.rb +0 -32
- data/lib/capistrano/recipes/deploy/assets.rb +0 -57
- data/lib/capistrano/recipes/deploy/dependencies.rb +0 -44
- data/lib/capistrano/recipes/deploy/local_dependency.rb +0 -54
- data/lib/capistrano/recipes/deploy/remote_dependency.rb +0 -111
- data/lib/capistrano/recipes/deploy/scm/accurev.rb +0 -169
- data/lib/capistrano/recipes/deploy/scm/base.rb +0 -196
- data/lib/capistrano/recipes/deploy/scm/bzr.rb +0 -86
- data/lib/capistrano/recipes/deploy/scm/cvs.rb +0 -153
- data/lib/capistrano/recipes/deploy/scm/darcs.rb +0 -96
- data/lib/capistrano/recipes/deploy/scm/git.rb +0 -282
- data/lib/capistrano/recipes/deploy/scm/mercurial.rb +0 -137
- data/lib/capistrano/recipes/deploy/scm/none.rb +0 -44
- data/lib/capistrano/recipes/deploy/scm/perforce.rb +0 -138
- data/lib/capistrano/recipes/deploy/scm/subversion.rb +0 -121
- data/lib/capistrano/recipes/deploy/scm.rb +0 -19
- data/lib/capistrano/recipes/deploy/strategy/base.rb +0 -88
- data/lib/capistrano/recipes/deploy/strategy/checkout.rb +0 -20
- data/lib/capistrano/recipes/deploy/strategy/copy.rb +0 -224
- data/lib/capistrano/recipes/deploy/strategy/export.rb +0 -20
- data/lib/capistrano/recipes/deploy/strategy/remote.rb +0 -52
- data/lib/capistrano/recipes/deploy/strategy/remote_cache.rb +0 -57
- data/lib/capistrano/recipes/deploy/strategy.rb +0 -19
- data/lib/capistrano/recipes/deploy/templates/maintenance.rhtml +0 -53
- data/lib/capistrano/recipes/deploy.rb +0 -568
- data/lib/capistrano/recipes/standard.rb +0 -37
- data/lib/capistrano/recipes/templates/maintenance.rhtml +0 -53
- data/lib/capistrano/role.rb +0 -102
- data/lib/capistrano/server_definition.rb +0 -56
- data/lib/capistrano/shell.rb +0 -260
- data/lib/capistrano/ssh.rb +0 -101
- data/lib/capistrano/task_definition.rb +0 -75
- data/lib/capistrano/transfer.rb +0 -216
- data/rvmrc.sample +0 -1
- data/test/cli/execute_test.rb +0 -132
- data/test/cli/help_test.rb +0 -165
- data/test/cli/options_test.rb +0 -329
- data/test/cli/ui_test.rb +0 -28
- data/test/cli_test.rb +0 -17
- data/test/command_test.rb +0 -289
- data/test/configuration/actions/file_transfer_test.rb +0 -61
- data/test/configuration/actions/inspect_test.rb +0 -65
- data/test/configuration/actions/invocation_test.rb +0 -247
- data/test/configuration/callbacks_test.rb +0 -220
- data/test/configuration/connections_test.rb +0 -420
- data/test/configuration/execution_test.rb +0 -175
- data/test/configuration/loading_test.rb +0 -132
- data/test/configuration/namespace_dsl_test.rb +0 -311
- data/test/configuration/roles_test.rb +0 -144
- data/test/configuration/servers_test.rb +0 -183
- data/test/configuration/variables_test.rb +0 -190
- data/test/configuration_test.rb +0 -88
- data/test/deploy/local_dependency_test.rb +0 -76
- data/test/deploy/remote_dependency_test.rb +0 -135
- data/test/deploy/scm/accurev_test.rb +0 -23
- data/test/deploy/scm/base_test.rb +0 -55
- data/test/deploy/scm/bzr_test.rb +0 -51
- data/test/deploy/scm/darcs_test.rb +0 -37
- data/test/deploy/scm/git_test.rb +0 -184
- data/test/deploy/scm/mercurial_test.rb +0 -134
- data/test/deploy/scm/none_test.rb +0 -35
- data/test/deploy/scm/subversion_test.rb +0 -32
- data/test/deploy/strategy/copy_test.rb +0 -321
- data/test/extensions_test.rb +0 -69
- data/test/fixtures/cli_integration.rb +0 -5
- data/test/fixtures/config.rb +0 -5
- data/test/fixtures/custom.rb +0 -3
- data/test/logger_test.rb +0 -123
- data/test/recipes_test.rb +0 -25
- data/test/role_test.rb +0 -11
- data/test/server_definition_test.rb +0 -121
- data/test/shell_test.rb +0 -90
- data/test/ssh_test.rb +0 -113
- data/test/task_definition_test.rb +0 -116
- data/test/transfer_test.rb +0 -160
- data/test/utils.rb +0 -37
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
3
|
+
require "capistrano/all"
|
|
4
|
+
require "rspec"
|
|
5
|
+
require "mocha/api"
|
|
6
|
+
require "time"
|
|
7
|
+
|
|
8
|
+
# Requires supporting files with custom matchers and macros, etc,
|
|
9
|
+
# in ./support/ and its subdirectories.
|
|
10
|
+
Dir['#{File.dirname(__FILE__)}/support/**/*.rb'].each { |f| require f }
|
|
11
|
+
|
|
12
|
+
RSpec.configure do |config|
|
|
13
|
+
config.raise_errors_for_deprecations!
|
|
14
|
+
config.mock_framework = :mocha
|
|
15
|
+
config.order = "random"
|
|
16
|
+
|
|
17
|
+
config.around(:example, capture_io: true) do |example|
|
|
18
|
+
begin
|
|
19
|
+
Rake.application.options.trace_output = StringIO.new
|
|
20
|
+
$stdout = StringIO.new
|
|
21
|
+
$stderr = StringIO.new
|
|
22
|
+
example.run
|
|
23
|
+
ensure
|
|
24
|
+
Rake.application.options.trace_output = STDERR
|
|
25
|
+
$stdout = STDOUT
|
|
26
|
+
$stderr = STDERR
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
require "English"
|
|
2
|
+
require "fileutils"
|
|
3
|
+
require "pathname"
|
|
4
|
+
require "open3"
|
|
5
|
+
|
|
6
|
+
module TestApp
|
|
7
|
+
extend self
|
|
8
|
+
|
|
9
|
+
def install
|
|
10
|
+
install_test_app_with(default_config)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def default_config
|
|
14
|
+
<<-CONFIG
|
|
15
|
+
set :deploy_to, '#{deploy_to}'
|
|
16
|
+
set :repo_url, 'https://github.com/capistrano/capistrano.git'
|
|
17
|
+
set :branch, 'master'
|
|
18
|
+
set :ssh_options, { keys: '#{File.expand_path('../../.docker/ssh_key_rsa', __dir__)}', auth_methods: ['publickey'] }
|
|
19
|
+
server 'deployer@localhost:2022', roles: %w{web app}
|
|
20
|
+
set :linked_files, #{linked_files}
|
|
21
|
+
set :linked_dirs, #{linked_dirs}
|
|
22
|
+
set :format_options, log_file: nil
|
|
23
|
+
set :local_user, #{current_user.inspect}
|
|
24
|
+
CONFIG
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def linked_files
|
|
28
|
+
%w{config/database.yml}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def linked_file
|
|
32
|
+
shared_path.join(linked_files.first)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def linked_dirs
|
|
36
|
+
%w{bin log public/system}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def create_test_app
|
|
40
|
+
FileUtils.rm_rf(test_app_path)
|
|
41
|
+
FileUtils.mkdir(test_app_path)
|
|
42
|
+
|
|
43
|
+
File.write(gemfile, <<-GEMFILE.gsub(/^\s+/, ""))
|
|
44
|
+
source "https://rubygems.org"
|
|
45
|
+
|
|
46
|
+
gem "capistrano", path: #{path_to_cap.to_s.inspect}
|
|
47
|
+
gem "ed25519", ">= 1.2", "< 2.0"
|
|
48
|
+
gem "bcrypt_pbkdf", ">= 1.0", "< 2.0"
|
|
49
|
+
GEMFILE
|
|
50
|
+
|
|
51
|
+
Dir.chdir(test_app_path) do
|
|
52
|
+
run "bundle"
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def install_test_app_with(config)
|
|
57
|
+
create_test_app
|
|
58
|
+
Dir.chdir(test_app_path) do
|
|
59
|
+
run "cap install STAGES=#{stage}"
|
|
60
|
+
end
|
|
61
|
+
write_local_deploy_file(config)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def write_local_deploy_file(config)
|
|
65
|
+
File.open(test_stage_path, "w") do |file|
|
|
66
|
+
file.write config
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def write_local_stage_file(filename, config=nil)
|
|
71
|
+
File.open(test_app_path.join("config/deploy/#{filename}"), "w") do |file|
|
|
72
|
+
file.write(config) if config
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def append_to_deploy_file(config)
|
|
77
|
+
File.open(test_stage_path, "a") do |file|
|
|
78
|
+
file.write config + "\n"
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def prepend_to_capfile(config)
|
|
83
|
+
current_capfile = File.read(capfile)
|
|
84
|
+
File.open(capfile, "w") do |file|
|
|
85
|
+
file.write config
|
|
86
|
+
file.write current_capfile
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def create_shared_directory(path)
|
|
91
|
+
FileUtils.mkdir_p(shared_path.join(path))
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def create_shared_file(path)
|
|
95
|
+
File.open(shared_path.join(path), "w")
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def cap(task, subdirectory=nil)
|
|
99
|
+
run "cap #{stage} #{task} --trace", subdirectory
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def run(command, subdirectory=nil)
|
|
103
|
+
command = "bundle exec #{command}" unless command =~ /^bundle\b/
|
|
104
|
+
dir = subdirectory ? test_app_path.join(subdirectory) : test_app_path
|
|
105
|
+
output, status = Dir.chdir(dir) do
|
|
106
|
+
with_clean_bundler_env { Open3.capture2e(command) }
|
|
107
|
+
end
|
|
108
|
+
[status.success?, output]
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def stage
|
|
112
|
+
"test"
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def test_stage_path
|
|
116
|
+
test_app_path.join("config/deploy/test.rb")
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def test_app_path
|
|
120
|
+
Pathname.new("/tmp/test_app")
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
def deploy_to
|
|
124
|
+
Pathname.new("/home/deployer/var/www/deploy")
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
def shared_path
|
|
128
|
+
deploy_to.join("shared")
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def current_path
|
|
132
|
+
deploy_to.join("current")
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
def releases_path
|
|
136
|
+
deploy_to.join("releases")
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def release_path(t=timestamp)
|
|
140
|
+
releases_path.join(t)
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
def timestamp(offset=0)
|
|
144
|
+
(Time.now.utc + offset).strftime("%Y%m%d%H%M%S")
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
def repo_path
|
|
148
|
+
deploy_to.join("repo")
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
def path_to_cap
|
|
152
|
+
File.expand_path(".")
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
def gemfile
|
|
156
|
+
test_app_path.join("Gemfile")
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
def capfile
|
|
160
|
+
test_app_path.join("Capfile")
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def current_user
|
|
164
|
+
"(GitHub Web Flow) via ShipIt"
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
def task_dir
|
|
168
|
+
test_app_path.join("lib/capistrano/tasks")
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
def copy_task_to_test_app(source)
|
|
172
|
+
FileUtils.cp(source, task_dir)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
def config_path
|
|
176
|
+
test_app_path.join("config")
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
def move_configuration_to_custom_location(location)
|
|
180
|
+
prepend_to_capfile(
|
|
181
|
+
<<-CONFIG
|
|
182
|
+
set :stage_config_path, "app/config/deploy"
|
|
183
|
+
set :deploy_config_path, "app/config/deploy.rb"
|
|
184
|
+
CONFIG
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
location = test_app_path.join(location)
|
|
188
|
+
FileUtils.mkdir_p(location)
|
|
189
|
+
FileUtils.mv(config_path, location)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
def git_wrapper_path_glob
|
|
193
|
+
"/tmp/git-ssh-*.sh"
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
def with_clean_bundler_env(&block)
|
|
197
|
+
return yield unless defined?(Bundler)
|
|
198
|
+
|
|
199
|
+
if Bundler.respond_to?(:with_unbundled_env)
|
|
200
|
+
Bundler.with_unbundled_env(&block)
|
|
201
|
+
else
|
|
202
|
+
Bundler.with_clean_env(&block)
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|