New upstream version 3.16.0
Samuel Henrique
3 years ago
29 | 29 |
return [stdout, stderr] if status.success?
|
30 | 30 |
raise VagrantSSHCommandError, status
|
31 | 31 |
end
|
|
32 |
|
|
33 |
def puts(message)
|
|
34 |
# Attach log messages to the current cucumber feature (`log`),
|
|
35 |
# or simply puts to the console (`super`) if we are outside of cucumber.
|
|
36 |
respond_to?(:log) ? log(message) : super(message)
|
|
37 |
end
|
32 | 38 |
end
|
33 | 39 |
|
34 | 40 |
World(VagrantHelpers)
|
59 | 59 |
end
|
60 | 60 |
end
|
61 | 61 |
|
|
62 |
def verify_commit
|
|
63 |
git :"verify-commit", fetch_revision
|
|
64 |
end
|
|
65 |
|
62 | 66 |
def archive_to_release_path
|
63 | 67 |
if (tree = fetch(:repo_tree))
|
64 | 68 |
tree = tree.slice %r#^/?(.*?)/?$#, 1
|
41 | 41 |
within repo_path do
|
42 | 42 |
with fetch(:git_environmental_variables) do
|
43 | 43 |
git_plugin.update_mirror
|
|
44 |
git_plugin.verify_commit if fetch(:git_verify_commit)
|
44 | 45 |
end
|
45 | 46 |
end
|
46 | 47 |
end
|
0 | 0 |
module Capistrano
|
1 | |
VERSION = "3.15.0".freeze
|
|
1 |
VERSION = "3.16.0".freeze
|
2 | 2 |
end
|
168 | 168 |
expect(revision).to eq("81cec13b777ff46348693d327fc8e7832f79bf43")
|
169 | 169 |
end
|
170 | 170 |
end
|
|
171 |
|
|
172 |
describe "#verify_commit" do
|
|
173 |
it "should run git verify-commit" do
|
|
174 |
env.set(:branch, "branch")
|
|
175 |
|
|
176 |
backend.expects(:capture).with(:git, "rev-list --max-count=1 branch").returns("81cec13b777ff46348693d327fc8e7832f79bf43")
|
|
177 |
backend.expects(:execute).with(:git, :"verify-commit", "81cec13b777ff46348693d327fc8e7832f79bf43")
|
|
178 |
|
|
179 |
subject.verify_commit
|
|
180 |
end
|
|
181 |
end
|
171 | 182 |
end
|
172 | 183 |
end
|