class Kitchen::Transport::Lxd
Public Class Methods
new(config = {})
click to toggle source
Calls superclass method
# File lib/kitchen/transport/lxd.rb, line 13 def initialize(config = {}) super @cache = {} end
Public Instance Methods
connection(state) { |conn| ... }
click to toggle source
# File lib/kitchen/transport/lxd.rb, line 18 def connection(state) begin @cache[state[:container_name]] ||= Connection.new nx_transport(state), config.to_hash.merge(state.merge(logger: logger)), state_filename end.tap { |conn| yield conn if block_given? } end
nx_transport(state)
click to toggle source
# File lib/kitchen/transport/lxd.rb, line 24 def nx_transport(state) instance.driver.nx_transport state end
state_filename()
click to toggle source
# File lib/kitchen/transport/lxd.rb, line 28 def state_filename instance.instance_variable_get("@state_file").instance_variable_get("@file_name") end