Class: Brewdler::Commands::Install
- Inherits:
-
Object
- Object
- Brewdler::Commands::Install
- Defined in:
- lib/brewdler/commands/install.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/brewdler/commands/install.rb', line 3 def self.run begin Brewdler::Dsl.new(brewfile).process rescue Errno::ENOENT => e raise "No Brewfile found" rescue NameError brewfile.split("\n").each do |name| name.chomp! Brewdler::BrewInstaller.install(name) if name.length > 0 && name !~ /^ *#/ end end end |