Module: HadoopDsl::DslController

Includes:
DslElement
Included in:
BaseMapRed, BaseSetup
Defined in:
lib/core.rb

Overview

controller

Instance Method Summary collapse

Methods included from DslElement

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HadoopDsl::DslElement

Instance Method Details

#pre_process(body) ⇒ Object



24
25
26
# File 'lib/core.rb', line 24

def pre_process(body)
  body # do nothing
end

#runObject



19
20
21
22
# File 'lib/core.rb', line 19

def run
  body = pre_process(HadoopDsl.read_file(@script))
  eval(body, binding, @script)
end