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



328
329
330
# File 'lib/hadupils/extensions.rb', line 328

def self.gather_assets(path)
  []
end

Instance Method Details

#hadoop_conf?Boolean

Returns:

  • (Boolean)


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

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

#hadoop_conf_pathObject



332
333
334
# File 'lib/hadupils/extensions.rb', line 332

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

#hadoop_confsObject



348
349
350
351
352
# File 'lib/hadupils/extensions.rb', line 348

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

#hiverc?Boolean

Returns:

  • (Boolean)


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

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

#hiverc_pathObject



336
337
338
# File 'lib/hadupils/extensions.rb', line 336

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

#hivercsObject



354
355
356
357
358
# File 'lib/hadupils/extensions.rb', line 354

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