class Pronto::Poper

Public Instance Methods

message_for(error) click to toggle source
# File lib/pronto/poper.rb, line 16
def message_for(error)
  Message.new(nil, nil, :warning, error.message.capitalize, error.commit,
              self.class)
end
run() click to toggle source
# File lib/pronto/poper.rb, line 6
def run
  return [] unless @patches

  poper_runner = ::Poper::Runner.new(@commit, repo_path.to_s)

  poper_runner.run
    .select { |error| error.commit != @commit }
    .map { |error| message_for(error) }
end