Class: Train::Transports::Mock::Connection::File
- Inherits:
-
FileCommon
- Object
- FileCommon
- Train::Transports::Mock::Connection::File
- Defined in:
- lib/train/transports/mock.rb
Instance Method Summary collapse
-
#initialize(runtime, path) ⇒ File
constructor
A new instance of File.
- #mounted ⇒ Object
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
#mounted ⇒ Object
125 126 127 128 129 |
# File 'lib/train/transports/mock.rb', line 125 def mounted @mounted ||= ( @runtime.run_command("mount | grep -- ' on #{@path}'") ) end |