Class: BuildTool::VCS::SvnConfiguration

Inherits:
BaseConfiguration show all
Includes:
MJ::Mixins::InheritedAttributes
Defined in:
lib/build-tool/vcs/svn.rb

Instance Attribute Summary collapse

Attributes inherited from BaseConfiguration

#module

Instance Method Summary collapse

Methods included from MJ::Mixins::InheritedAttributes

included

Methods inherited from BaseConfiguration

#local_path

Constructor Details

#initializeSvnConfiguration

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_pathObject



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

#repositoryObject

Raises:



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

#nameObject



20
21
22
# File 'lib/build-tool/vcs/svn.rb', line 20

def name
    "svn"
end

#vcs(mod) ⇒ Object

Raises:

  • (StandardError)


24
25
26
27
28
# File 'lib/build-tool/vcs/svn.rb', line 24

def vcs( mod )
    raise StandardError if @module and ! mod.equal?( @module )
    @module = mod
    Svn.new( self )
end