Class: Kitchen::Provisioner::Base
- Inherits:
-
Object
- Object
- Kitchen::Provisioner::Base
- Defined in:
- lib/kitchen/helpers.rb
Overview
Instance Method Summary collapse
-
#create_sandbox ⇒ void
Create the kitchen sandbox under ~/.dokken.
-
#instance_name ⇒ String
A container-safe, collision-free name for this kitchen instance.
-
#sandbox_path ⇒ String
Where the provisioner stages files for this instance.
Instance Method Details
#create_sandbox ⇒ void
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_name ⇒ String
A container-safe, collision-free name for this kitchen instance.
591 592 593 |
# File 'lib/kitchen/helpers.rb', line 591 def instance_name ::Dokken::Helpers.instance_name_for(instance) end |
#sandbox_path ⇒ String
Where the provisioner stages files for this instance.
this MUST be named 'sandbox_path' because ruby.
583 584 585 |
# File 'lib/kitchen/helpers.rb', line 583 def sandbox_path "#{Dir.home}/.dokken/kitchen_sandbox/#{instance_name}" end |