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.



136
137
138
139
140
141
# File 'lib/train/transports/mock.rb', line 136

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

Instance Method Details

#mountedObject



143
144
145
146
# File 'lib/train/transports/mock.rb', line 143

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