Class: R10K::Source::SVN::BranchName Private
- Inherits:
-
Object
- Object
- R10K::Source::SVN::BranchName
- Defined in:
- lib/r10k/source/svn.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
respect environment name corrections
Instance Attribute Summary collapse
- #name ⇒ Object readonly private
- #remote ⇒ Object readonly private
Instance Method Summary collapse
- #dirname ⇒ Object private
-
#initialize(name, remote, opts) ⇒ BranchName
constructor
private
A new instance of BranchName.
Constructor Details
#initialize(name, remote, opts) ⇒ BranchName
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of BranchName.
139 140 141 142 143 144 145 146 |
# File 'lib/r10k/source/svn.rb', line 139 def initialize(name, remote, opts) @name = name @remote = remote @opts = opts @prefix = opts[:prefix] @sourcename = opts[:sourcename] end |
Instance Attribute Details
#name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
136 137 138 |
# File 'lib/r10k/source/svn.rb', line 136 def name @name end |
#remote ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
137 138 139 |
# File 'lib/r10k/source/svn.rb', line 137 def remote @remote end |
Instance Method Details
#dirname ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
148 149 150 151 152 153 154 155 156 |
# File 'lib/r10k/source/svn.rb', line 148 def dirname dir = @name.dup if @prefix dir = "#{@sourcename}_#{dir}" end dir end |