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
286
287
288
289
290
291
292
293
294
|
# File 'lib/hadupils/extensions.rb', line 286
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
282
283
284
|
# File 'lib/hadupils/extensions.rb', line 282
def default_hiverc_items
@assets.dup
end
|
#hivercs ⇒ Object
277
278
279
280
|
# File 'lib/hadupils/extensions.rb', line 277
def hivercs
@hiverc ||= assemble_hiverc
[@hiverc]
end
|