Class: Train::Transports::Mock::Connection::File

Inherits:
FileCommon
  • Object
show all
Defined in:
lib/train/transports/mock.rb

Instance Method Summary collapse

Constructor Details

#initialize(runtime, path) ⇒ File

Returns a new instance of File.



118
119
120
121
122
123
# File 'lib/train/transports/mock.rb', line 118

def initialize(runtime, path)
  @path = path
  @type = :unknown
  @exist = false
  @runtime = runtime
end

Instance Method Details

#mountedObject



125
126
127
128
129
# File 'lib/train/transports/mock.rb', line 125

def mounted
  @mounted ||= (
    @runtime.run_command("mount | grep -- ' on #{@path}'")
  )
end