Class: Sprinkle::Installers::Source
- Defined in:
- lib/sprinkle/installers/source.rb
Instance Attribute Summary collapse
-
#post(stage, *commands) ⇒ Object
Returns the value of attribute post.
-
#pre(stage, *commands) ⇒ Object
Returns the value of attribute pre.
-
#source ⇒ Object
Returns the value of attribute source.
Attributes inherited from Installer
Instance Method Summary collapse
-
#initialize(parent, source, options = {}, &block) ⇒ Source
constructor
A new instance of Source.
Methods inherited from Installer
#defaults, #method_missing, #process
Constructor Details
#initialize(parent, source, options = {}, &block) ⇒ Source
Returns a new instance of Source.
6 7 8 9 10 |
# File 'lib/sprinkle/installers/source.rb', line 6 def initialize(parent, source, = {}, &block) @pre = {}; @post = {} @source = source super parent, , &block end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer
Instance Attribute Details
#post(stage, *commands) ⇒ Object
Returns the value of attribute post.
4 5 6 |
# File 'lib/sprinkle/installers/source.rb', line 4 def post @post end |
#pre(stage, *commands) ⇒ Object
Returns the value of attribute pre.
4 5 6 |
# File 'lib/sprinkle/installers/source.rb', line 4 def pre @pre end |
#source ⇒ Object
Returns the value of attribute source.
4 5 6 |
# File 'lib/sprinkle/installers/source.rb', line 4 def source @source end |