Class: HadoopDsl::BaseSetup

Inherits:
Object
  • Object
show all
Includes:
DslController
Defined in:
lib/core.rb

Direct Known Subclasses

HiveLike::HiveLikeSetup

Instance Method Summary collapse

Methods included from DslController

#pre_process, #run

Methods included from DslElement

#method_missing

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_formatObject

do nothing



55
# File 'lib/core.rb', line 55

def output_format; end

#pathsObject



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