Class: Avm::Scms::Commit

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

Instance Method Summary collapse

Instance Method Details

#changed_filesArray<Pathname>

Returns:

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

#idObject



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

def id
  raise_abstract_method __method__
end

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

Parameters:

Returns:



25
26
27
# File 'lib/avm/scms/commit.rb', line 25

def merge_with(_other)
  raise_abstract_method __method__
end

#no_scm_changed_filesArray<Pathname>

Returns:

  • (Array<Pathname>)


30
31
32
# File 'lib/avm/scms/commit.rb', line 30

def no_scm_changed_files
  changed_files.reject { |path| scm_file?(path) }
end

#reword(_new_message) ⇒ Object

Parameters:

  • new_message (String)


35
36
37
# File 'lib/avm/scms/commit.rb', line 35

def reword(_new_message)
  raise_abstract_method __method__
end

#scm_changed_filesArray<Pathname>

Returns:

  • (Array<Pathname>)


40
41
42
# File 'lib/avm/scms/commit.rb', line 40

def scm_changed_files
  changed_files.select { |path| scm_file?(path) }
end

#scm_file?(_path) ⇒ TrueClass, FalseClass

Parameters:

  • path (Pathname)

Returns:

  • (TrueClass, FalseClass)


46
47
48
# File 'lib/avm/scms/commit.rb', line 46

def scm_file?(_path)
  raise_abstract_method __method__
end