Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: db8c426f1b
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (36 sloc) 0.768 kB
module Brew2Deb
class Env < OpenStruct
def self.defaults
{
:action => :build,
:architecture => 'i386',
:base_dir => Pathname.new(Dir.pwd),
:homebrew_dir => Pathname.new(File.dirname(__FILE__)) + 'vendor' + 'homebrew',
}
end
def self.new(attrs = {})
super(defaults.merge(attrs))
end
def build_dir
super || begin
base_dir + 'tmp-build'
end
end
def install_dir
super || begin
base_dir + 'tmp-install'
end
end
def homebrew_library_dir
homebrew_dir + 'Library/Homebrew'
end
def package_dir
super || begin
base_dir + 'pkg'
end
end
def output_dir
super || base_dir
end
end
end
Jump to Line
Something went wrong with that request. Please try again.