Class: Kitchen::Provisioner::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/helpers.rb

Overview

See Also:

Instance Method Summary collapse

Instance Method Details

#create_sandboxvoid

This method returns an undefined value.

Create the kitchen sandbox under ~/.dokken.



573
574
575
576
# File 'lib/kitchen/helpers.rb', line 573

def create_sandbox
  info("Creating kitchen sandbox in #{sandbox_path}")
  FileUtils.mkdir_p(sandbox_path, mode: 0o755)
end

#instance_nameString

A container-safe, collision-free name for this kitchen instance.

Returns:

  • (String)

    the instance name

See Also:

  • Dokken::Helpers#instance_name


591
592
593
# File 'lib/kitchen/helpers.rb', line 591

def instance_name
  ::Dokken::Helpers.instance_name_for(instance)
end

#sandbox_pathString

Where the provisioner stages files for this instance.

this MUST be named 'sandbox_path' because ruby.

Returns:

  • (String)

    an absolute path on the host



583
584
585
# File 'lib/kitchen/helpers.rb', line 583

def sandbox_path
  "#{Dir.home}/.dokken/kitchen_sandbox/#{instance_name}"
end