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

Attributes inherited from BaseConfiguration

#module

Instance Method Summary collapse

Methods inherited from GitConfiguration

#track_branch, #track_remote

Methods inherited from BaseConfiguration

#local_path, #remote_path, #repository

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

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

#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