Class: Roasted::Roaster

Inherits:
Object
  • Object
show all
Defined in:
lib/roasted/roaster.rb

Defined Under Namespace

Classes: Parser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Roaster

Returns a new instance of Roaster.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/roasted/roaster.rb', line 8

def initialize(options)
  @options = options
  
  # Load DSL
  parser = Parser.new
  parser.instance_eval(File.read(options[:config]), options[:config])
  
  parser.runlist.each do |run|
    # Only action at this point, install
    run.install
  end
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/roasted/roaster.rb', line 6

def options
  @options
end