Class: BuildTool::VCS::GitSvnConfiguration
Instance Attribute Summary collapse
#global_options, #options, #remote
#module
Instance Method Summary
collapse
#merged_global_options, #merged_options, #merged_remote, #track_branch, #track_remote
included
#local_path
Constructor Details
Returns a new instance of GitSvnConfiguration.
17
18
19
20
21
22
|
# File 'lib/build-tool/vcs/git-svn.rb', line 17
def initialize
super
@externals = {}
@repository = nil
@remote_path = nil
end
|
Instance Attribute Details
#externals ⇒ Object
Returns the value of attribute externals.
15
16
17
|
# File 'lib/build-tool/vcs/git-svn.rb', line 15
def externals
@externals
end
|
#remote_path ⇒ Object
52
53
54
55
56
|
# File 'lib/build-tool/vcs/git-svn.rb', line 52
def remote_path
return @remote_path if @remote_path
return parent.remote_path if @parent
return @module.name
end
|
#repository ⇒ Object
45
46
47
48
49
|
# File 'lib/build-tool/vcs/git-svn.rb', line 45
def repository
return @repository if @repository return parent.repository if @parent raise ConfigurationError, "No repository configured for module #{self.module ? self.module.name : 'unknown' }."
end
|
Instance Method Details
#add_external(local, target) ⇒ Object
35
36
37
|
# File 'lib/build-tool/vcs/git-svn.rb', line 35
def add_external( local, target )
@externals[local] = target
end
|
#copy_configuration(other) ⇒ Object
39
40
41
42
|
# File 'lib/build-tool/vcs/git-svn.rb', line 39
def copy_configuration( other )
super
@externals = {} end
|
#merged_externals ⇒ Object
24
25
26
27
|
# File 'lib/build-tool/vcs/git-svn.rb', line 24
def merged_externals
return parent.merged_externals.merge( @externals ) if @parent return @externals end
|
#name ⇒ Object
11
12
13
|
# File 'lib/build-tool/vcs/git-svn.rb', line 11
def name
"git-svn"
end
|
#track ⇒ Object
58
59
60
61
62
|
# File 'lib/build-tool/vcs/git-svn.rb', line 58
def track
return @track if @track return parent.track if @parent "remotes/git-svn"
end
|
#vcs(mod) ⇒ Object
29
30
31
32
33
|
# File 'lib/build-tool/vcs/git-svn.rb', line 29
def vcs( mod )
raise StandardError if @module and ! mod.equal?( @module )
@module = mod
GitSvn.new( self )
end
|