Class: Kompo::InstallDeps::ForMacOS::InstallZlib::Installed

Inherits:
Taski::Task
  • Object
show all
Defined in:
lib/kompo/tasks/install_deps.rb

Instance Method Summary collapse

Instance Method Details

#runObject



216
217
218
219
220
221
# File 'lib/kompo/tasks/install_deps.rb', line 216

def run
  brew = HomebrewPath.path
  prefix = `#{brew} --prefix #{BREW_NAME} 2>/dev/null`.chomp
  @lib_path = "-L#{prefix}/lib" if $CHILD_STATUS.success? && !prefix.empty?
  puts "#{BREW_NAME} is already installed"
end