lib/myosx/homebrew.rb in myosx-0.2.2 vs lib/myosx/homebrew.rb in myosx-0.2.4
- old
+ new
@@ -7,18 +7,18 @@
require_relative 'config'
class Homebrew < Config
def config
- $global_config['homebrew']
+ Config.new.global['homebrew']
end
def packages
config['packages']
end
def brewfile
- return File.join($workspace, 'Brewfile')
+ return File.join(Config.new.workspace_directory, 'Brewfile')
end
def brewfile_out(packages)
output = ''
packages.each do |type, package_array|