Class: R10K::Source::SVN::BranchName Private

Inherits:
Object
  • Object
show all
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.

TODO:

respect environment name corrections

Since:

  • 1.3.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Since:

  • 1.3.0



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

#nameObject (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.

Since:

  • 1.3.0



136
137
138
# File 'lib/r10k/source/svn.rb', line 136

def name
  @name
end

#remoteObject (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.

Since:

  • 1.3.0



137
138
139
# File 'lib/r10k/source/svn.rb', line 137

def remote
  @remote
end

Instance Method Details

#dirnameObject

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.

Since:

  • 1.3.0



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