Class: Avm::Scms::Commit
- Inherits:
-
Object
- Object
- Avm::Scms::Commit
- Defined in:
- lib/avm/scms/commit.rb
Direct Known Subclasses
Instance Method Summary collapse
- #changed_files ⇒ Array<Pathname>
- #deploy_to_env_path(_target_env, _target_path) ⇒ Object
- #fixup? ⇒ Boolean
- #id ⇒ Object
- #merge_with(_other) ⇒ Avm::Scms::Commit
- #no_scm_changed_files ⇒ Array<Pathname>
- #reword(_new_message) ⇒ Object
- #scm_changed_files ⇒ Array<Pathname>
- #scm_file?(_path) ⇒ TrueClass, FalseClass
- #subject ⇒ String
- #to_s ⇒ String
Instance Method Details
#changed_files ⇒ Array<Pathname>
11 12 13 |
# File 'lib/avm/scms/commit.rb', line 11 def changed_files raise_abstract_method __method__ end |
#deploy_to_env_path(_target_env, _target_path) ⇒ Object
15 16 17 |
# File 'lib/avm/scms/commit.rb', line 15 def deploy_to_env_path(_target_env, _target_path) raise_abstract_method __method__ end |
#fixup? ⇒ Boolean
20 21 22 |
# File 'lib/avm/scms/commit.rb', line 20 def fixup? raise_abstract_method __method__ end |
#id ⇒ Object
24 25 26 |
# File 'lib/avm/scms/commit.rb', line 24 def id raise_abstract_method __method__ end |
#merge_with(_other) ⇒ Avm::Scms::Commit
30 31 32 |
# File 'lib/avm/scms/commit.rb', line 30 def merge_with(_other) raise_abstract_method __method__ end |
#no_scm_changed_files ⇒ Array<Pathname>
35 36 37 |
# File 'lib/avm/scms/commit.rb', line 35 def no_scm_changed_files changed_files.reject { |path| scm_file?(path) } end |
#reword(_new_message) ⇒ Object
40 41 42 |
# File 'lib/avm/scms/commit.rb', line 40 def reword() raise_abstract_method __method__ end |
#scm_changed_files ⇒ Array<Pathname>
45 46 47 |
# File 'lib/avm/scms/commit.rb', line 45 def scm_changed_files changed_files.select { |path| scm_file?(path) } end |
#scm_file?(_path) ⇒ TrueClass, FalseClass
51 52 53 |
# File 'lib/avm/scms/commit.rb', line 51 def scm_file?(_path) raise_abstract_method __method__ end |
#subject ⇒ String
56 57 58 |
# File 'lib/avm/scms/commit.rb', line 56 def subject raise_abstract_method __method__ end |
#to_s ⇒ String
61 62 63 |
# File 'lib/avm/scms/commit.rb', line 61 def to_s "#{subject} [#{id}]" end |