Class: Pipeline::FileSystemMounter
- Inherits:
-
BaseMounter
- Object
- BaseMounter
- Pipeline::FileSystemMounter
- Defined in:
- lib/pipeline/mounters/filesystem_mounter.rb
Instance Attribute Summary
Attributes inherited from BaseMounter
#description, #errors, #name, #trigger
Instance Method Summary collapse
-
#initialize(trigger, options) ⇒ FileSystemMounter
constructor
A new instance of FileSystemMounter.
- #mount(target) ⇒ Object
- #supports?(target) ⇒ Boolean
Methods inherited from BaseMounter
Constructor Details
#initialize(trigger, options) ⇒ FileSystemMounter
Returns a new instance of FileSystemMounter.
6 7 8 9 10 11 |
# File 'lib/pipeline/mounters/filesystem_mounter.rb', line 6 def initialize trigger, super(trigger) @options = @name = "FileSystem" @description = "Mount a file via normal file system commands." end |
Instance Method Details
#mount(target) ⇒ Object
13 14 15 |
# File 'lib/pipeline/mounters/filesystem_mounter.rb', line 13 def mount target return target end |
#supports?(target) ⇒ Boolean
17 18 19 |
# File 'lib/pipeline/mounters/filesystem_mounter.rb', line 17 def supports? target File.directory? target end |