Class: Vint::Parser
- Inherits:
-
Object
- Object
- Vint::Parser
- Defined in:
- lib/vint/parser.rb
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #parse(brewfile) ⇒ Object
Constructor Details
#initialize ⇒ Parser
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 |