Class: Kitchen::Transport::Dummy::Connection

Inherits:
Base::Connection show all
Defined in:
lib/kitchen/transport/dummy.rb

Overview

TODO: comment

Instance Method Summary collapse

Methods inherited from Base::Connection

#close, #execute_with_retry, #initialize, #login_command, #retry?, #wait_until_ready

Methods included from Logging

#banner, #debug, #error, #fatal, #info, #warn

Constructor Details

This class inherits a constructor from Kitchen::Transport::Base::Connection

Instance Method Details

#download(remotes, local) ⇒ Object



54
55
56
# File 'lib/kitchen/transport/dummy.rb', line 54

def download(remotes, local)
  report(:download, "#{remotes.inspect} => #{local}")
end

#execute(command) ⇒ Object



43
44
45
46
47
48
# File 'lib/kitchen/transport/dummy.rb', line 43

def execute(command)
  report(:execute, command)
  if options[:random_exit_code] != 0
    info("Dummy exited (#{exit_code}) for command: [#{command}]")
  end
end

#upload(locals, remote) ⇒ Object



50
51
52
# File 'lib/kitchen/transport/dummy.rb', line 50

def upload(locals, remote)
  report(:upload, "#{locals.inspect} => #{remote}")
end