Class: Pipeline::BaseMounter
- Inherits:
-
Object
- Object
- Pipeline::BaseMounter
- Defined in:
- lib/pipeline/mounters/base_mounter.rb
Direct Known Subclasses
DockerMounter, FileSystemMounter, GitMounter, ISOMounter, URLMounter
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#name ⇒ Object
Returns the value of attribute name.
-
#trigger ⇒ Object
readonly
Returns the value of attribute trigger.
Instance Method Summary collapse
- #error(error) ⇒ Object
-
#initialize(trigger) ⇒ BaseMounter
constructor
A new instance of BaseMounter.
- #mount ⇒ Object
- #supports?(target) ⇒ Boolean
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
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/pipeline/mounters/base_mounter.rb', line 6 def description @description end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
3 4 5 |
# File 'lib/pipeline/mounters/base_mounter.rb', line 3 def errors @errors end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/pipeline/mounters/base_mounter.rb', line 5 def name @name end |
#trigger ⇒ Object (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 |
#mount ⇒ Object
25 26 |
# File 'lib/pipeline/mounters/base_mounter.rb', line 25 def mount end |
#supports?(target) ⇒ Boolean
28 29 |
# File 'lib/pipeline/mounters/base_mounter.rb', line 28 def supports? target end |