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
21 22 23 24 |
# File 'lib/avm/scms/auto_commit/for_file.rb', line 21 def run run_commit || warn("No rule returned commit information for \"#{path}\"") end |
#scm_relative_path ⇒ Object
17 18 19 |
# File 'lib/avm/scms/auto_commit/for_file.rb', line 17 def scm_relative_path path.to_pathname.relative_path_from(scm.path) end |