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
#execute(command) ⇒ Object
43 44 45 46 47 48 |
# File 'lib/kitchen/transport/dummy.rb', line 43 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
50 51 52 |
# File 'lib/kitchen/transport/dummy.rb', line 50 def upload(locals, remote) report(:upload, "#{locals.inspect} => #{remote}") end |