Class: Avm::Scms::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/scms/commit.rb

Direct Known Subclasses

Null::Commit

Instance Method Summary collapse

Instance Method Details

#changed_filesArray<Pathname>

Returns:

  • (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

Returns:

  • (Boolean)


18
19
20
# File 'lib/avm/scms/commit.rb', line 18

def fixup?
  raise_abstract_method __method__
end

#idObject



22
23
24
# File 'lib/avm/scms/commit.rb', line 22

def id
  raise_abstract_method __method__
end

#merge_with(_other) ⇒ Avm::Scms::Commit

Parameters:

Returns:



28
29
30
# File 'lib/avm/scms/commit.rb', line 28

def merge_with(_other)
  raise_abstract_method __method__
end

#no_scm_changed_filesArray<Pathname>

Returns:

  • (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

Parameters:

  • new_message (String)


38
39
40
# File 'lib/avm/scms/commit.rb', line 38

def reword(_new_message)
  raise_abstract_method __method__
end

#scm_changed_filesArray<Pathname>

Returns:

  • (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

Parameters:

  • path (Pathname)

Returns:

  • (TrueClass, FalseClass)


49
50
51
# File 'lib/avm/scms/commit.rb', line 49

def scm_file?(_path)
  raise_abstract_method __method__
end

#subjectString

Returns:

  • (String)


54
55
56
# File 'lib/avm/scms/commit.rb', line 54

def subject
  raise_abstract_method __method__
end

#to_sString

Returns:

  • (String)


59
60
61
# File 'lib/avm/scms/commit.rb', line 59

def to_s
  "#{subject} [#{id}]"
end