Method: Serverspec::Type::HadoopConfig#initialize

Defined in:
lib/serverspec/type/hadoop_config.rb

#initialize(name = nil, options = {}) ⇒ HadoopConfig

Returns a new instance of HadoopConfig.



3
4
5
6
7
8
9
10
11
# File 'lib/serverspec/type/hadoop_config.rb', line 3

def initialize(name=nil, options={})
  super

  begin
    require 'nokogiri'
  rescue LoadError
    fail "nokogiri is not available. Try installing it."
  end
end