Class: Train::Transports::Local::Connection

Inherits:
BaseConnection
  • Object
show all
Defined in:
lib/train/transports/local.rb

Defined Under Namespace

Classes: GenericRunner, WindowsPipeRunner, WindowsShellRunner

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Connection

Returns a new instance of Connection.



20
21
22
23
24
25
26
27
28
# File 'lib/train/transports/local.rb', line 20

def initialize(options)
  super(options)

  @runner = if options[:command_runner]
              force_runner(options[:command_runner])
            else
              select_runner(options)
            end
end

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/train/transports/local.rb', line 30

def local?
  true
end

#login_commandObject



34
35
36
# File 'lib/train/transports/local.rb', line 34

def 
  nil # none, open your shell
end

#uriObject



38
39
40
# File 'lib/train/transports/local.rb', line 38

def uri
  'local://'
end