Class: Train::Transports::Docker
- Inherits:
-
Object
- Object
- Train::Transports::Docker
- Defined in:
- lib/train/transports/docker.rb,
lib/train/transports/docker.rb
Defined Under Namespace
Classes: Connection
Instance Method Summary collapse
Instance Method Details
#connection(state = {}, &block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/train/transports/docker.rb', line 11 def connection(state = {}, &block) opts = (, state || {}) (opts) if @connection && @connection_options == opts reuse_connection(&block) else create_new_connection(opts, &block) end end |