Class: Pot::Installers::Brew

Inherits:
Pot::Installer show all
Defined in:
lib/pot/installers/brew.rb

Overview

Homebrew Package Installer

The Homebrew package installer uses the brew command to install packages on OSX.

Example Usage

package :magic_beans do
  description "Beans beans they're good for your heart..."
  brew 'magic_beans_package'
end

Instance Attribute Summary collapse

Attributes inherited from Pot::Installer

#actor, #options, #package, #post, #pre

Instance Method Summary collapse

Methods inherited from Pot::Installer

#archives, #builds, #commands, #prefix, #process

Constructor Details

#initialize(parent, *formulas, &block) ⇒ Brew

:nodoc:



18
19
20
21
22
23
24
# File 'lib/pot/installers/brew.rb', line 18

def initialize(parent, *formulas, &block) #:nodoc:
  formulas.flatten!

  super parent, &block

  @formulas = formulas
end

Instance Attribute Details

#formulasObject

:nodoc:



16
17
18
# File 'lib/pot/installers/brew.rb', line 16

def formulas
  @formulas
end