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(backend, path, follow_symlink = true) ⇒ File

Returns a new instance of File.



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

def initialize(backend, path, follow_symlink = true)
  super(backend, path, follow_symlink)
  @type = :unknown
  @exist = false
end

Instance Method Details

#mountedObject



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

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