Class: Avm::Sources::Base
- Inherits:
-
Object
- Object
- Avm::Sources::Base
show all
- Defined in:
- lib/avm/sources/base.rb,
lib/avm/sources/base/testing.rb,
lib/avm/sources/base/configuration.rb
Defined Under Namespace
Modules: Configuration, Testing
Instance Method Summary
collapse
Instance Method Details
27
28
29
|
# File 'lib/avm/sources/base.rb', line 27
def parent
options[OPTION_PARENT]
end
|
#relative_path ⇒ Pathname
32
33
34
35
36
|
# File 'lib/avm/sources/base.rb', line 32
def relative_path
return path if parent.blank?
path.relative_path_from(parent.path)
end
|
39
40
41
|
# File 'lib/avm/sources/base.rb', line 39
def subs
scm.subs.map { |subrepo| ::Avm::Registry.sources.detect(subrepo.path, parent: self) }
end
|