Class: Autoproj::Ops::Tools::FakePackage
- Inherits:
-
Autobuild::Package
- Object
- Autobuild::Package
- Autoproj::Ops::Tools::FakePackage
- Defined in:
- lib/autoproj/ops/tools.rb
Overview
Data structure used to use autobuild importers without a package, to import configuration data.
It has to match the interface of Autobuild::Package that is relevant for importers
Instance Attribute Summary collapse
-
#importer ⇒ Object
readonly
Returns the value of attribute importer.
-
#srcdir ⇒ Object
readonly
Returns the value of attribute srcdir.
-
#updated ⇒ Object
Used by the autobuild importers.
Instance Method Summary collapse
- #add_stat(*args) ⇒ Object
- #autoproj_name ⇒ Object
- #import(**options) ⇒ Object
-
#initialize(text_name, srcdir, importer = nil) ⇒ FakePackage
constructor
A new instance of FakePackage.
Constructor Details
#initialize(text_name, srcdir, importer = nil) ⇒ FakePackage
Returns a new instance of FakePackage.
20 21 22 23 24 25 |
# File 'lib/autoproj/ops/tools.rb', line 20 def initialize(text_name, srcdir, importer = nil) super(text_name) @srcdir = srcdir @importer = importer @@packages.delete(text_name) end |
Instance Attribute Details
#importer ⇒ Object (readonly)
Returns the value of attribute importer.
11 12 13 |
# File 'lib/autoproj/ops/tools.rb', line 11 def importer @importer end |
#srcdir ⇒ Object (readonly)
Returns the value of attribute srcdir.
10 11 12 |
# File 'lib/autoproj/ops/tools.rb', line 10 def srcdir @srcdir end |
#updated ⇒ Object
Used by the autobuild importers
14 15 16 |
# File 'lib/autoproj/ops/tools.rb', line 14 def updated @updated end |
Instance Method Details
#add_stat(*args) ⇒ Object
31 32 |
# File 'lib/autoproj/ops/tools.rb', line 31 def add_stat(*args) end |
#autoproj_name ⇒ Object
16 17 18 |
# File 'lib/autoproj/ops/tools.rb', line 16 def autoproj_name name end |
#import(**options) ⇒ Object
27 28 29 |
# File 'lib/autoproj/ops/tools.rb', line 27 def import(**) importer.import(self, **) end |