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