Class: BuildTool::VCS::GitSvnConfiguration

Inherits:
GitConfiguration show all
Defined in:
lib/build-tool/vcs/git-svn.rb

Instance Attribute Summary collapse

Attributes inherited from GitConfiguration

#remote, #track

Attributes inherited from BaseConfiguration

#module

Instance Method Summary collapse

Methods inherited from GitConfiguration

#track_remote

Methods inherited from BaseConfiguration

#local_path

Constructor Details

#initializeGitSvnConfiguration

Returns a new instance of GitSvnConfiguration.



15
16
17
18
# File 'lib/build-tool/vcs/git-svn.rb', line 15

def initialize
    super
    @externals = {}
end

Instance Attribute Details

#externalsObject (readonly)

Returns the value of attribute externals.



13
14
15
# File 'lib/build-tool/vcs/git-svn.rb', line 13

def externals
  @externals
end

#remote_pathObject



44
45
46
47
48
49
# File 'lib/build-tool/vcs/git-svn.rb', line 44

def remote_path
    if @remote_path.nil?
        return @module.name
    end
    @remote_path
end

#repositoryObject



36
37
38
39
40
41
# File 'lib/build-tool/vcs/git-svn.rb', line 36

def repository
    if @repository.nil?
         raise ConfigurationError, "No repository configured for module #{self.module.name}."
    end
    @repository
end

Instance Method Details

#add_external(local, target) ⇒ Object



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

def add_external( local, target )
    @externals[local] = target
end

#copy_configuration(other) ⇒ Object



30
31
32
33
# File 'lib/build-tool/vcs/git-svn.rb', line 30

def copy_configuration( other )
    super
    @externals = {}     # Do not copy the externals
end

#nameObject



9
10
11
# File 'lib/build-tool/vcs/git-svn.rb', line 9

def name
    "git-svn"
end

#track_branchObject



51
52
53
# File 'lib/build-tool/vcs/git-svn.rb', line 51

def track_branch
    "git-svn"
end

#vcs(mod) ⇒ Object

Raises:

  • (StandardError)


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

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