Class: Kitchen::Transport::Dummy::Connection
- Inherits:
-
Base::Connection
- Object
- Base::Connection
- Kitchen::Transport::Dummy::Connection
- 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
53 54 55 |
# File 'lib/kitchen/transport/dummy.rb', line 53 def download(remotes, local) report(:download, "#{remotes.inspect} => #{local}") end |
#execute(command) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/kitchen/transport/dummy.rb', line 42 def execute(command) report(:execute, command) if [:random_exit_code] != 0 info("Dummy exited (#{exit_code}) for command: [#{command}]") end end |
#upload(locals, remote) ⇒ Object
49 50 51 |
# File 'lib/kitchen/transport/dummy.rb', line 49 def upload(locals, remote) report(:upload, "#{locals.inspect} => #{remote}") end |