class Kmc::GitAdapter::Commit

Public Instance Methods

post?() click to toggle source
# File lib/kmc/git_adapter.rb, line 52
def post?
  type == :post
end
pre?() click to toggle source
# File lib/kmc/git_adapter.rb, line 48
def pre?
  type == :pre
end
subject() click to toggle source
# File lib/kmc/git_adapter.rb, line 65
def subject
  # "POST: Example\n" --> "Example"
  message.split(' ', 2).last.strip
end
type() click to toggle source
# File lib/kmc/git_adapter.rb, line 60
def type
  # "POST: Example" --> :post
  message.split(':').first.downcase.to_sym
end
uninstall?() click to toggle source
# File lib/kmc/git_adapter.rb, line 56
def uninstall?
  type == :uninstall
end