Class: Avm::Scms::AutoCommit::ForFile

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/scms/auto_commit/for_file.rb

Defined Under Namespace

Classes: CommitDelegator

Constant Summary collapse

COMMITS_SEARCH_INTERVAL =
'origin/master..HEAD'

Instance Method Summary collapse

Instance Method Details

#runObject



24
25
26
27
# File 'lib/avm/scms/auto_commit/for_file.rb', line 24

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

#scm_relative_pathObject



20
21
22
# File 'lib/avm/scms/auto_commit/for_file.rb', line 20

def scm_relative_path
  path.to_pathname.relative_path_from(scm.path)
end