Class: Avm::Scms::Base

Inherits:
Object
  • Object
show all
Includes:
With::ApplicationStereotype
Defined in:
lib/avm/scms/base.rb,
lib/avm/scms/base/commits.rb,
lib/avm/scms/base/remotes.rb,
lib/avm/scms/base/branches.rb,
lib/avm/scms/base/milestones.rb

Direct Known Subclasses

Null

Defined Under Namespace

Modules: Branches, Commits, Milestones

Instance Method Summary collapse

Instance Method Details

#changed_filesAvm::Scms::ChangedFile



17
18
19
# File 'lib/avm/scms/base.rb', line 17

def changed_files
  raise_abstract_method __method__
end

#completer(options = {}) ⇒ Object

Parameters:

  • options (Hash<Symbol, Object>) (defaults to: {})


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

def completer(options = {}) # rubocop:disable Lint/UnusedMethodArgument
  raise_abstract_method __method__
end

#interval(_from, _to) ⇒ Avm::Scms::Interval

Returns:



27
28
29
# File 'lib/avm/scms/base.rb', line 27

def interval(_from, _to)
  raise_abstract_method __method__
end

#nameObject



31
32
33
# File 'lib/avm/scms/base.rb', line 31

def name
  self.class.name.demodulize
end

#relative_path_from_parent_scmPathname

Returns:

  • (Pathname)


36
37
38
39
40
# File 'lib/avm/scms/base.rb', line 36

def relative_path_from_parent_scm
  parent_scm.if_present(nil) do |v|
    path.relative_path_from(v.path)
  end
end

#subsEnumerable<Avm::Scms::Base>

Returns:



43
44
45
# File 'lib/avm/scms/base.rb', line 43

def subs
  raise_abstract_method __method__
end

#to_sObject



47
48
49
# File 'lib/avm/scms/base.rb', line 47

def to_s
  name
end