Class: Avm::Git::AutoCommitPath
- Defined in:
- lib/avm/git/auto_commit_path.rb,
lib/avm/git/auto_commit_path/ruby.rb
Defined Under Namespace
Modules: Ruby
Instance Method Summary collapse
Instance Method Details
#class_name ⇒ Object
13 14 15 |
# File 'lib/avm/git/auto_commit_path.rb', line 13 def class_name ruby_class_name || relative_path.to_path end |
#commit_message ⇒ Object
17 18 19 20 21 |
# File 'lib/avm/git/auto_commit_path.rb', line 17 def r = class_name r += ': remove' unless path.file? r + '.' end |
#relative_path ⇒ Object
23 24 25 |
# File 'lib/avm/git/auto_commit_path.rb', line 23 def relative_path path.relative_path_from(git.root_path) end |