Class: Kitchen::Transport::Dokken
- Inherits:
-
Base
- Object
- Base
- Kitchen::Transport::Dokken
- Defined in:
- lib/kitchen/transport/dokken.rb
Overview
A Transport which uses Docker tricks to execute commands and transfer files.
Defined Under Namespace
Classes: Connection
Instance Method Summary collapse
- #connection(state, &block) ⇒ Object
-
#docker_for_mac? ⇒ TrueClass, FalseClass
Detect whether or not we are running in Docker for Mac.
Instance Method Details
#connection(state, &block) ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'lib/kitchen/transport/dokken.rb', line 49 def connection(state, &block) = (config.to_hash.merge(state)) if @connection && == reuse_connection(&block) else create_new_connection(, &block) end end |
#docker_for_mac? ⇒ TrueClass, FalseClass
Detect whether or not we are running in Docker for Mac
169 170 171 |
# File 'lib/kitchen/transport/dokken.rb', line 169 def docker_for_mac? Docker.info["Name"] == "moby" end |