Class: BuildTool::VCS::SvnConfiguration
- Inherits:
-
BaseConfiguration
- Object
- BaseConfiguration
- BuildTool::VCS::SvnConfiguration
- Includes:
- MJ::Mixins::InheritedAttributes
- Defined in:
- lib/build-tool/vcs/svn.rb
Instance Attribute Summary collapse
Attributes inherited from BaseConfiguration
Instance Method Summary collapse
- #copy_configuration(other) ⇒ Object
-
#initialize ⇒ SvnConfiguration
constructor
A new instance of SvnConfiguration.
- #name ⇒ Object
- #vcs(mod) ⇒ Object
Methods included from MJ::Mixins::InheritedAttributes
Methods inherited from BaseConfiguration
Constructor Details
#initialize ⇒ SvnConfiguration
Returns a new instance of SvnConfiguration.
13 14 15 16 17 18 |
# File 'lib/build-tool/vcs/svn.rb', line 13 def initialize super @only = nil @repository = nil @remote_path = nil end |
Instance Attribute Details
#remote_path ⇒ Object
45 46 47 48 49 |
# File 'lib/build-tool/vcs/svn.rb', line 45 def remote_path return @remote_path if @remote_path return parent.remote_path if @parent return @module.name end |
#repository ⇒ Object
38 39 40 41 42 |
# File 'lib/build-tool/vcs/svn.rb', line 38 def repository return @repository if @repository # Our repository return parent.repository if @parent # Our parents repository raise ConfigurationError, "No repository configured for module #{self.module ? self.module.name : 'unknown' }." end |
Instance Method Details
#copy_configuration(other) ⇒ Object
32 33 34 35 |
# File 'lib/build-tool/vcs/svn.rb', line 32 def copy_configuration( other ) super @only = nil # Do not copy nil end |
#name ⇒ Object
20 21 22 |
# File 'lib/build-tool/vcs/svn.rb', line 20 def name "svn" end |