Method: GrubConfig#initialize

Defined in:
lib/resources/grub_conf.rb

#initialize(path = nil, kernel = nil) ⇒ GrubConfig

Returns a new instance of GrubConfig.



25
26
27
28
29
30
# File 'lib/resources/grub_conf.rb', line 25

def initialize(path = nil, kernel = nil)
  config_for_platform(path)
  @kernel = kernel || 'default'
rescue UnknownGrubConfig
  return skip_resource 'The `grub_config` resource is not supported on your OS yet.'
end