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



121
122
123
124
125
126
127
128
# File 'lib/r10k/source/svn.rb', line 121

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



118
119
120
# File 'lib/r10k/source/svn.rb', line 118

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



119
120
121
# File 'lib/r10k/source/svn.rb', line 119

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



130
131
132
133
134
135
136
137
138
# File 'lib/r10k/source/svn.rb', line 130

def dirname
  dir = @name.dup

  if @prefix
    dir = "#{@sourcename}_#{dir}"
  end

  dir
end