Sha256: 2f4373742c7a2eead3d8a1efe082bf24478b561fcf8fd3ad1de23c44d74d5469
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 Bytes
Contents
module Brewdler::Commands class Install def self.run begin file = File.read(File.join(Dir.pwd, "Brewfile")) Brewdler::Dsl.new(file).process rescue Errno::ENOENT => e raise "No Brewfile found" rescue NameError file = File.open(File.join(Dir.pwd, "Brewfile")) file.find_all do |name| name.chomp! Brewdler::BrewInstaller.install(name) if name.length > 0 && name !~ /^ *#/ end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brewdler-0.5.0 | lib/brewdler/commands/install.rb |