Class: Hadupils::Extensions::HiveRC::Static

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

Overview

Wraps an extant hive initialization file, and providing an interface compatible with the critical parts of the Dynamic sibling class so they may be used interchangeably by runners when determining hive options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HiveOpt

#hive_opts

Constructor Details

#initialize(path) ⇒ Static

Given a path, expands it ti



161
162
163
# File 'lib/hadupils/extensions.rb', line 161

def initialize(path)
  @path = ::File.expand_path(path)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



156
157
158
# File 'lib/hadupils/extensions.rb', line 156

def path
  @path
end

Instance Method Details

#closeObject



165
166
# File 'lib/hadupils/extensions.rb', line 165

def close
end