Class: Avm::Scms::AutoCommit::Rules::New::WithFile

Inherits:
Base::WithFile show all
Defined in:
lib/avm/scms/auto_commit/rules/new.rb

Instance Method Summary collapse

Methods inherited from Base::WithFile

#new_commit_info

Instance Method Details

#auto_commit_pathObject



12
13
14
# File 'lib/avm/scms/auto_commit/rules/new.rb', line 12

def auto_commit_path
  ::Avm::Scms::AutoCommit::FileResourceName.new(file.scm.path, file.path)
end

#commit_infoObject



16
17
18
# File 'lib/avm/scms/auto_commit/rules/new.rb', line 16

def commit_info
  new_commit_info.message(auto_commit_path.commit_message)
end