Class: Kitchen::Instance

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/binding/core_ext/instance.rb

Overview

Add some additioanl methods to Kitchen::Instnace to allow use of Kitchen::Binding

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Instance

Returns a new instance of Instance.



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/kitchen/binding/core_ext/instance.rb', line 27

def initialize(options = {})
  validate_options(options)

  @suite        = options.fetch(:suite)
  @platform     = options.fetch(:platform)
  @name         = self.class.name_for(@suite, @platform)
  @driver       = options.fetch(:driver)
  @provisioner  = options.fetch(:provisioner)
  @binding      = options.fetch(:binding)
  @busser       = options.fetch(:busser)
  @logger       = options.fetch(:logger) { Kitchen.logger }
  @state_file   = options.fetch(:state_file)

  setup_driver
  setup_provisioner
end

Instance Attribute Details

#bindingBinding::Base (readonly)

Returns binding object which will the setup and invocation instructions for remote interactive ruby shells.

Returns:

  • (Binding::Base)

    binding object which will the setup and invocation instructions for remote interactive ruby shells



25
26
27
# File 'lib/kitchen/binding/core_ext/instance.rb', line 25

def binding
  @binding
end