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.
17 18 19 20 21 |
# File 'lib/build-tool/vcs/archive.rb', line 17 def initialize super @repository = nil @remote_path = nil end |
Instance Attribute Details
#remote_path ⇒ Object
42 43 44 45 46 47 |
# File 'lib/build-tool/vcs/archive.rb', line 42 def remote_path if @remote_path.nil? return @module.name end @remote_path end |
#repository ⇒ Object
34 35 36 37 38 39 |
# File 'lib/build-tool/vcs/archive.rb', line 34 def repository if @repository.nil? raise ConfigurationError, "No repository configured for module #{mod.name}." end @repository end |
Instance Method Details
#copy_configuration(other) ⇒ Object
29 30 31 |
# File 'lib/build-tool/vcs/archive.rb', line 29 def copy_configuration( other ) super end |
#name ⇒ Object
13 14 15 |
# File 'lib/build-tool/vcs/archive.rb', line 13 def name "archive" end |