Class: BuildTool::VCS::ArchiveConfiguration
- Inherits:
-
BaseConfiguration
- Object
- BaseConfiguration
- BuildTool::VCS::ArchiveConfiguration
- Defined in:
- lib/build-tool/vcs/archive.rb
Instance Attribute Summary collapse
Attributes inherited from BaseConfiguration
Instance Method Summary collapse
- #copy_configuration(other) ⇒ Object
-
#initialize ⇒ ArchiveConfiguration
constructor
A new instance of ArchiveConfiguration.
- #name ⇒ Object
- #vcs(mod) ⇒ Object
Methods inherited from BaseConfiguration
Constructor Details
#initialize ⇒ ArchiveConfiguration
Returns a new instance of ArchiveConfiguration.
15 16 17 18 19 |
# File 'lib/build-tool/vcs/archive.rb', line 15 def initialize super @repository = nil @remote_path = nil end |
Instance Attribute Details
#remote_path ⇒ Object
40 41 42 43 44 45 |
# File 'lib/build-tool/vcs/archive.rb', line 40 def remote_path if @remote_path.nil? return @module.name end @remote_path end |
#repository ⇒ Object
32 33 34 35 36 37 |
# File 'lib/build-tool/vcs/archive.rb', line 32 def repository if @repository.nil? raise ConfigurationError, "No repository configured for module #{mod.name}." end @repository end |
Instance Method Details
#copy_configuration(other) ⇒ Object
27 28 29 |
# File 'lib/build-tool/vcs/archive.rb', line 27 def copy_configuration( other ) super end |
#name ⇒ Object
11 12 13 |
# File 'lib/build-tool/vcs/archive.rb', line 11 def name "archive" end |