Class: Vintner::Parser
- Inherits:
-
Object
- Object
- Vintner::Parser
- Defined in:
- lib/vintner/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/vintner/parser.rb', line 4 def initialize end |
Instance Method Details
#parse(brewfile) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/vintner/parser.rb', line 36 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 |