Class: Roasted::Roaster::Parser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeParser

Returns a new instance of Parser.



24
25
26
# File 'lib/roasted/roaster.rb', line 24

def initialize
  @runlist = []
end

Instance Attribute Details

#runlistObject (readonly)

Returns the value of attribute runlist.



22
23
24
# File 'lib/roasted/roaster.rb', line 22

def runlist
  @runlist
end

Instance Method Details

#app(appname, options = {}, &block) ⇒ Object



32
33
34
# File 'lib/roasted/roaster.rb', line 32

def app(appname, options = {}, &block)
  @runlist << ::Roasted::Provider::App.create(options.merge({:app => appname, :block => block}))
end

#brew(formula) ⇒ Object



28
29
30
# File 'lib/roasted/roaster.rb', line 28

def brew(formula)
  @runlist << ::Roasted::Provider::Brew.create(:formula => formula)
end