Class: Train::Transports::KubernetesHack

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/verifier/train_kubernetes_hack.rb

Defined Under Namespace

Classes: Connection

Instance Method Summary collapse

Instance Method Details

#connection(state = {}) ⇒ Object



34
35
36
37
38
39
40
41
42
43
# File 'lib/kitchen/verifier/train_kubernetes_hack.rb', line 34

def connection(state = {})
  opts = merge_options(options, state || {})
  validate_options(opts)
  opts[:logger] ||= logger
  unless @connection && @connection_opts == opts
    @connection ||= Connection.new(opts)
    @connection_opts = opts.dup
  end
  @connection
end