Class: BuildTool::VCS::BaseConfiguration Abstract
- Inherits:
-
Object
- Object
- BuildTool::VCS::BaseConfiguration
- Defined in:
- lib/build-tool/vcs/base.rb
Overview
This class is abstract.
Base class for version control system configurations.
Direct Known Subclasses
ArchiveConfiguration, BazarConfiguration, GitConfiguration, MercurialConfiguration, SvnConfiguration
Instance Attribute Summary collapse
-
#module ⇒ Object
readonly
The associated module of this configuration object.
-
#name ⇒ Object
readonly
The name of the version control system.
Instance Method Summary collapse
- #copy_configuration(other) ⇒ Object
-
#initialize ⇒ BaseConfiguration
constructor
A new instance of BaseConfiguration.
- #local_path ⇒ Object
Constructor Details
permalink #initialize ⇒ BaseConfiguration
Returns a new instance of BaseConfiguration.
24 25 26 |
# File 'lib/build-tool/vcs/base.rb', line 24 def initialize @module = nil end |
Instance Attribute Details
permalink #module ⇒ Object (readonly)
The associated module of this configuration object.
17 18 19 |
# File 'lib/build-tool/vcs/base.rb', line 17 def module @module end |
permalink #name ⇒ Object (readonly)
The name of the version control system
14 15 16 |
# File 'lib/build-tool/vcs/base.rb', line 14 def name @name end |
Instance Method Details
permalink #copy_configuration(other) ⇒ Object
[View source]
32 33 34 |
# File 'lib/build-tool/vcs/base.rb', line 32 def copy_configuration( other ) @module = nil end |
permalink #local_path ⇒ Object
[View source]
28 29 30 |
# File 'lib/build-tool/vcs/base.rb', line 28 def local_path @module.source_directory end |