Class: Pipeline::BaseMounter

Inherits:
Object
  • Object
show all
Defined in:
lib/pipeline/mounters/base_mounter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(trigger) ⇒ BaseMounter

Returns a new instance of BaseMounter.



8
9
10
11
# File 'lib/pipeline/mounters/base_mounter.rb', line 8

def initialize(trigger)
  @errors = []
  @trigger = trigger
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/pipeline/mounters/base_mounter.rb', line 6

def description
  @description
end

#errorsObject (readonly)

Returns the value of attribute errors.



3
4
5
# File 'lib/pipeline/mounters/base_mounter.rb', line 3

def errors
  @errors
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/pipeline/mounters/base_mounter.rb', line 5

def name
  @name
end

#triggerObject (readonly)

Returns the value of attribute trigger.



4
5
6
# File 'lib/pipeline/mounters/base_mounter.rb', line 4

def trigger
  @trigger
end

Instance Method Details

#error(error) ⇒ Object



13
14
15
# File 'lib/pipeline/mounters/base_mounter.rb', line 13

def error error
  @errors << error
end

#mountObject



25
26
# File 'lib/pipeline/mounters/base_mounter.rb', line 25

def mount
end

#supports?(target) ⇒ Boolean

Returns:

  • (Boolean)


28
29
# File 'lib/pipeline/mounters/base_mounter.rb', line 28

def supports? target
end