class Kitchen::Transport::Exec

Exec transport for Kitchen. This transport runs all commands locally.

@since 1.19

Public Instance Methods

connection(state, &block) click to toggle source
# File lib/kitchen/transport/exec.rb, line 30
def connection(state, &block)
  options = connection_options(config.to_hash.merge(state))
  Kitchen::Transport::Exec::Connection.new(options, &block)
end

Private Instance Methods

connection_options(data) click to toggle source

Builds the hash of options needed by the Connection object on construction.

@param data [Hash] merged configuration and mutable state data @return [Hash] hash of connection options @api private

# File lib/kitchen/transport/exec.rb, line 136
def connection_options(data)
  opts = {
    instance_name: instance.name,
    kitchen_root: Dir.pwd,
  }
  opts
end