module FitCommit

Mixin for adding errors & warnings

Represents a line from the commit

Constants

VERSION

Public Class Methods

run() click to toggle source
# File lib/fit_commit.rb, line 4
def self.run
  exit_code = runner.run
  exit(exit_code)
end

Private Class Methods

branch_name() click to toggle source
# File lib/fit_commit.rb, line 19
def self.branch_name
  ENV.fetch("GIT_BRANCH_NAME")
end
message_path() click to toggle source
# File lib/fit_commit.rb, line 15
def self.message_path
  ENV.fetch("COMMIT_MESSAGE_PATH")
end
runner() click to toggle source
# File lib/fit_commit.rb, line 11
def self.runner
  FitCommit::Runner.new(message_path, branch_name)
end