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, #initialize, #login_command, #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
47 48 49 50 51 52 |
# File 'lib/kitchen/transport/dummy.rb', line 47 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
54 55 56 |
# File 'lib/kitchen/transport/dummy.rb', line 54 def upload(locals, remote) report(:upload, "#{locals.inspect} => #{remote}") end |