Class: Avm::Scms::AutoCommit::ForFile
- Inherits:
-
Object
- Object
- Avm::Scms::AutoCommit::ForFile
- 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
#run ⇒ Object
24 25 26 27 |
# File 'lib/avm/scms/auto_commit/for_file.rb', line 24 def run run_commit || warn("No rule returned commit information for \"#{path}\"") end |
#scm_relative_path ⇒ Object
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 |