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>
9 10 11 |
# File 'lib/avm/scms/commit.rb', line 9 def changed_files raise_abstract_method __method__ end |
#deploy_to_env_path(_target_env, _target_path) ⇒ Object
13 14 15 |
# File 'lib/avm/scms/commit.rb', line 13 def deploy_to_env_path(_target_env, _target_path) raise_abstract_method __method__ end |
#fixup? ⇒ Boolean
18 19 20 |
# File 'lib/avm/scms/commit.rb', line 18 def fixup? raise_abstract_method __method__ end |
#id ⇒ Object
22 23 24 |
# File 'lib/avm/scms/commit.rb', line 22 def id raise_abstract_method __method__ end |
#merge_with(_other) ⇒ Avm::Scms::Commit
28 29 30 |
# File 'lib/avm/scms/commit.rb', line 28 def merge_with(_other) raise_abstract_method __method__ end |
#no_scm_changed_files ⇒ Array<Pathname>
33 34 35 |
# File 'lib/avm/scms/commit.rb', line 33 def no_scm_changed_files changed_files.reject { |path| scm_file?(path) } end |
#reword(_new_message) ⇒ Object
38 39 40 |
# File 'lib/avm/scms/commit.rb', line 38 def reword() raise_abstract_method __method__ end |
#scm_changed_files ⇒ Array<Pathname>
43 44 45 |
# File 'lib/avm/scms/commit.rb', line 43 def scm_changed_files changed_files.select { |path| scm_file?(path) } end |
#scm_file?(_path) ⇒ TrueClass, FalseClass
49 50 51 |
# File 'lib/avm/scms/commit.rb', line 49 def scm_file?(_path) raise_abstract_method __method__ end |
#subject ⇒ String
54 55 56 |
# File 'lib/avm/scms/commit.rb', line 54 def subject raise_abstract_method __method__ end |
#to_s ⇒ String
59 60 61 |
# File 'lib/avm/scms/commit.rb', line 59 def to_s "#{subject} [#{id}]" end |