Class: Hadupils::Extensions::Flat
- Inherits:
-
Base
- Object
- Base
- Hadupils::Extensions::Flat
show all
- Defined in:
- lib/hadupils/extensions.rb
Instance Attribute Summary
Attributes inherited from Base
#assets, #path
Instance Method Summary
collapse
Methods inherited from Base
gather_assets, #hadoop_confs, #initialize, #merge_assets
Instance Method Details
#assemble_hiverc ⇒ Object
276
277
278
279
280
281
282
283
284
|
# File 'lib/hadupils/extensions.rb', line 276
def assemble_hiverc
assets = default_hiverc_items
if @hiverc_block
assets = @hiverc_block.call(assets.dup)
end
hiverc = Hadupils::Extensions::HiveRC::Dynamic.new
hiverc.write(assets)
hiverc
end
|
#default_hiverc_items ⇒ Object
272
273
274
|
# File 'lib/hadupils/extensions.rb', line 272
def default_hiverc_items
@assets.dup
end
|
#hivercs ⇒ Object
267
268
269
270
|
# File 'lib/hadupils/extensions.rb', line 267
def hivercs
@hiverc ||= assemble_hiverc
[@hiverc]
end
|