Class: Kitchen::Instance
- Inherits:
-
Object
- Object
- Kitchen::Instance
- 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
-
#binding ⇒ Binding::Base
readonly
Binding object which will the setup and invocation instructions for remote interactive ruby shells.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Instance
constructor
A new instance of Instance.
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( = {}) () @suite = .fetch(:suite) @platform = .fetch(:platform) @name = self.class.name_for(@suite, @platform) @driver = .fetch(:driver) @provisioner = .fetch(:provisioner) @binding = .fetch(:binding) @busser = .fetch(:busser) @logger = .fetch(:logger) { Kitchen.logger } @state_file = .fetch(:state_file) setup_driver setup_provisioner end |
Instance Attribute Details
#binding ⇒ Binding::Base (readonly)
Returns 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 |