Class: Hadupils::Extensions::Static

Inherits:
Base
  • Object
show all
Defined in:
lib/hadupils/extensions.rb

Instance Attribute Summary

Attributes inherited from Base

#assets, #path

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, #merge_assets

Constructor Details

This class inherits a constructor from Hadupils::Extensions::Base

Class Method Details

.gather_assets(path) ⇒ Object



318
319
320
# File 'lib/hadupils/extensions.rb', line 318

def self.gather_assets(path)
  []
end

Instance Method Details

#hadoop_conf?Boolean

Returns:

  • (Boolean)


330
331
332
# File 'lib/hadupils/extensions.rb', line 330

def hadoop_conf?
  hadoop_conf_path ? ::File.file?(hadoop_conf_path) : false
end

#hadoop_conf_pathObject



322
323
324
# File 'lib/hadupils/extensions.rb', line 322

def hadoop_conf_path
  ::File.join(path, 'hadoop.xml') if path
end

#hadoop_confsObject



338
339
340
341
342
# File 'lib/hadupils/extensions.rb', line 338

def hadoop_confs
  r = []
  r << Hadupils::Extensions::HadoopConf::Static.new(hadoop_conf_path) if hadoop_conf?
  r
end

#hiverc?Boolean

Returns:

  • (Boolean)


334
335
336
# File 'lib/hadupils/extensions.rb', line 334

def hiverc?
  hiverc_path ? ::File.file?(hiverc_path) : false
end

#hiverc_pathObject



326
327
328
# File 'lib/hadupils/extensions.rb', line 326

def hiverc_path
  ::File.join(path, 'hiverc') if path
end

#hivercsObject



344
345
346
347
348
# File 'lib/hadupils/extensions.rb', line 344

def hivercs
  r = []
  r << Hadupils::Extensions::HiveRC::Static.new(hiverc_path) if hiverc?
  r
end