Class: BuildTool::VCS::GitSvnConfiguration
- Inherits:
-
GitConfiguration
- Object
- BaseConfiguration
- GitConfiguration
- BuildTool::VCS::GitSvnConfiguration
- Defined in:
- lib/build-tool/vcs/git-svn.rb
Instance Attribute Summary collapse
-
#externals ⇒ Object
readonly
Returns the value of attribute externals.
- #remote_path ⇒ Object
- #repository ⇒ Object
Attributes inherited from GitConfiguration
Attributes inherited from BaseConfiguration
Instance Method Summary collapse
- #add_external(local, target) ⇒ Object
- #copy_configuration(other) ⇒ Object
-
#initialize ⇒ GitSvnConfiguration
constructor
A new instance of GitSvnConfiguration.
- #name ⇒ Object
- #track_branch ⇒ Object
- #vcs(mod) ⇒ Object
Methods inherited from GitConfiguration
Methods inherited from BaseConfiguration
Constructor Details
#initialize ⇒ GitSvnConfiguration
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
#externals ⇒ Object (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_path ⇒ Object
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 |
#repository ⇒ Object
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 |
#name ⇒ Object
9 10 11 |
# File 'lib/build-tool/vcs/git-svn.rb', line 9 def name "git-svn" end |
#track_branch ⇒ Object
51 52 53 |
# File 'lib/build-tool/vcs/git-svn.rb', line 51 def track_branch "git-svn" end |