Class: Train::Transports::Local::Connection
- Inherits:
-
BaseConnection
- Object
- BaseConnection
- Train::Transports::Local::Connection
- Defined in:
- lib/train/transports/local.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Connection
constructor
A new instance of Connection.
- #local? ⇒ Boolean
- #login_command ⇒ Object
- #uri ⇒ Object
Constructor Details
#initialize(options) ⇒ Connection
Returns a new instance of Connection.
20 21 22 23 24 |
# File 'lib/train/transports/local.rb', line 20 def initialize() super() @cmd_wrapper = nil @cmd_wrapper = CommandWrapper.load(self, ) end |
Instance Method Details
#local? ⇒ Boolean
34 35 36 |
# File 'lib/train/transports/local.rb', line 34 def local? true end |
#login_command ⇒ Object
26 27 28 |
# File 'lib/train/transports/local.rb', line 26 def login_command nil # none, open your shell end |
#uri ⇒ Object
30 31 32 |
# File 'lib/train/transports/local.rb', line 30 def uri 'local://' end |