Class: Sprinkle::Installers::Source

Inherits:
Installer show all
Defined in:
lib/sprinkle/installers/source.rb

Instance Attribute Summary collapse

Attributes inherited from Installer

#delivery, #options, #package

Instance Method Summary collapse

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, options = {}, &block)
  @pre = {}; @post = {}
  @source = source
  super parent, options, &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

#sourceObject

Returns the value of attribute source.



4
5
6
# File 'lib/sprinkle/installers/source.rb', line 4

def source
  @source
end