Codebase list capistrano / 044e0fd
New upstream version 3.16.0 Samuel Henrique 3 years ago
6 changed file(s) with 24 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
106106
107107 ``` ruby
108108 group :development do
109 gem "capistrano", "~> 3.14", require: false
109 gem "capistrano", "~> 3.16", require: false
110110 end
111111 ```
112112
2929 return [stdout, stderr] if status.success?
3030 raise VagrantSSHCommandError, status
3131 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
3238 end
3339
3440 World(VagrantHelpers)
5959 end
6060 end
6161
62 def verify_commit
63 git :"verify-commit", fetch_revision
64 end
65
6266 def archive_to_release_path
6367 if (tree = fetch(:repo_tree))
6468 tree = tree.slice %r#^/?(.*?)/?$#, 1
4141 within repo_path do
4242 with fetch(:git_environmental_variables) do
4343 git_plugin.update_mirror
44 git_plugin.verify_commit if fetch(:git_verify_commit)
4445 end
4546 end
4647 end
00 module Capistrano
1 VERSION = "3.15.0".freeze
1 VERSION = "3.16.0".freeze
22 end
168168 expect(revision).to eq("81cec13b777ff46348693d327fc8e7832f79bf43")
169169 end
170170 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
171182 end
172183 end