Class: R10K::Deployment::Environment Private

Inherits:
Object
  • Object
show all
Defined in:
lib/r10k/deployment/environment.rb

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.

Class Method Summary collapse

Class Method Details

.new(ref, remote, basedir, dirname = nil, source_name = "") ⇒ R10K::Environment::Git

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.

Deprecated.

Parameters:

  • ref (String)
  • remote (String)
  • basedir (String)
  • dirname (String) (defaults to: nil)

    The directory to clone the root into, defaults to ref

  • source_name (String) (defaults to: "")

    An additional string which may be used with ref to build dirname

Returns:



14
15
16
17
18
19
# File 'lib/r10k/deployment/environment.rb', line 14

def self.new(ref, remote, basedir, dirname = nil, source_name = "")
  alternate_name =  source_name.empty? ? ref : source_name + "_" + ref
  dirname = dirname || alternate_name

  R10K::Environment::Git.new(ref, basedir, dirname, {:remote => remote, :ref => ref})
end