Class: Avm::Git::FileAutoFixup

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/git/file_auto_fixup.rb

Defined Under Namespace

Classes: CommitDelegator

Constant Summary collapse

COMMITS_SEARCH_INTERVAL =
'origin/master..HEAD'

Instance Method Summary collapse

Instance Method Details

#git_relative_pathObject



19
20
21
# File 'lib/avm/git/file_auto_fixup.rb', line 19

def git_relative_path
  path.to_pathname.relative_path_from(git.root_path)
end

#runObject



23
24
25
26
# File 'lib/avm/git/file_auto_fixup.rb', line 23

def run
  start_banner
  run_commit || warn("No rule returned commit information for \"#{path}\"")
end