Sha256: 809a500b679bdcfc1efe20576d2389def596090bb4ee48542e480970e8046c8f
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
#!/usr/bin/env ruby require 'brewdler' require 'commander/import' program :version, Brewdler::VERSION program :description, 'CLI helper for brewdler' default_command :install command :install do |c| c.description = 'Install all homebrew based dependecies' c.action do |args, options| begin file = File.read(File.join(Dir.pwd, "Brewfile")) Brewdler::Dsl.new(file).process rescue Errno::ENOENT => e raise "No Brewfile found\n#{e.message}" 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brewdler-0.4.1 | bin/brewdle |