Method: R10K::Source::Hash#initialize

Defined in:
lib/r10k/source/hash.rb

#initialize(name, basedir, options = {}) ⇒ Hash

Returns a new instance of Hash.

Parameters:

  • name (String)

    The identifier for this source.

  • basedir (String)

    The base directory where the generated environments will be created.

  • options (Hash) (defaults to: {})

    An additional set of options for this source. The semantics of this hash may depend on the source implementation.

Options Hash (options):

  • :prefix (Boolean, String)

    If a String this becomes the prefix. If true, will use the source name as the prefix. All sources should respect this option. Defaults to false for no environment prefix.

  • :environments (Hash)

    The hash definition of environments

Since:

  • 3.4.0



140
141
142
# File 'lib/r10k/source/hash.rb', line 140

def initialize(name, basedir, options = {})
  super(name, basedir, options)
end