Class: Pipeline::FileSystemMounter

Inherits:
BaseMounter show all
Defined in:
lib/pipeline/mounters/filesystem_mounter.rb

Instance Attribute Summary

Attributes inherited from BaseMounter

#description, #errors, #name, #trigger

Instance Method Summary collapse

Methods inherited from BaseMounter

#error

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, options
  super(trigger)
  @options = 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

Returns:

  • (Boolean)


17
18
19
# File 'lib/pipeline/mounters/filesystem_mounter.rb', line 17

def supports? target
  File.directory? target
end