Class: Vint::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/vint/parser.rb

Instance Method Summary collapse

Constructor Details

#initializeParser

Returns a new instance of Parser.



4
5
6
# File 'lib/vint/parser.rb', line 4

def initialize
  
end

Instance Method Details

#parse(brewfile) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/vint/parser.rb', line 38

def parse(brewfile)
  begin
    eval(File.open(brewfile).read)
    puts "All of formula in Brewfile is installed!"
  rescue => e
    puts e
    exit 1
  end
end