Class: HadoopDsl::BaseSetup
- Inherits:
-
Object
- Object
- HadoopDsl::BaseSetup
- Includes:
- DslController
- Defined in:
- lib/core.rb
Direct Known Subclasses
Instance Method Summary collapse
- #from(path) ⇒ Object
-
#initialize(script, conf) ⇒ BaseSetup
constructor
A new instance of BaseSetup.
-
#output_format ⇒ Object
do nothing.
- #paths ⇒ Object
- #to(path) ⇒ Object
Methods included from DslController
Methods included from DslElement
Constructor Details
#initialize(script, conf) ⇒ BaseSetup
Returns a new instance of BaseSetup.
50 51 52 53 |
# File 'lib/core.rb', line 50 def initialize(script, conf) @script, @conf = script, conf output_format end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HadoopDsl::DslElement
Instance Method Details
#from(path) ⇒ Object
57 |
# File 'lib/core.rb', line 57 def from(path) @from = path end |
#output_format ⇒ Object
do nothing
55 |
# File 'lib/core.rb', line 55 def output_format; end |
#paths ⇒ Object
56 |
# File 'lib/core.rb', line 56 def paths; [@from, @to] end |
#to(path) ⇒ Object
58 |
# File 'lib/core.rb', line 58 def to(path) @to = path end |