class Lapidarist::BisectStep
Attributes
line[R]
shell[R]
Public Class Methods
new(line, shell)
click to toggle source
# File lib/lapidarist/git_command.rb, line 94 def initialize(line, shell) @line = line @shell = shell end
Public Instance Methods
failing_gem(sha)
click to toggle source
# File lib/lapidarist/git_command.rb, line 114 def failing_gem(sha) commit_message = shell.run("git log --format=%s -n 1 #{sha}", label: 'git log')[0] sha_regex = Regexp::new('Update (.*) from').match(commit_message) unless sha_regex.nil? sha_regex[1] end end
failing_sha()
click to toggle source
# File lib/lapidarist/git_command.rb, line 107 def failing_sha sha_regex = Regexp::new("(.*) is the first bad commit\n").match(line) unless sha_regex.nil? sha_regex[1] end end
failure?()
click to toggle source
# File lib/lapidarist/git_command.rb, line 103 def failure? !failing_sha.nil? end
success?()
click to toggle source
# File lib/lapidarist/git_command.rb, line 99 def success? line == "bisect run success\n" end