Class: Armada::Connection::Docker
- Defined in:
- lib/armada/connection/docker.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Attributes inherited from Remote
Instance Method Summary collapse
-
#initialize(host, gateway_host = nil, gateway_user = nil) ⇒ Docker
constructor
A new instance of Docker.
- #to_s ⇒ Object
Methods inherited from Remote
Constructor Details
#initialize(host, gateway_host = nil, gateway_user = nil) ⇒ Docker
Returns a new instance of Docker.
6 7 8 9 |
# File 'lib/armada/connection/docker.rb', line 6 def initialize(host, gateway_host = nil, gateway_user = nil) super(host, nil, gateway_host, gateway_user) @connection = create_connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
5 6 7 |
# File 'lib/armada/connection/docker.rb', line 5 def connection @connection end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/armada/connection/docker.rb', line 11 def to_s "#{@host}:#{@port}" end |