Sha256: 3940b1308250fdb7fe47527bd901234cdcc16ebc15c32b506745f37ed82db02b

Contents?: true

Size: 733 Bytes

Versions: 1

Compression:

Stored size: 733 Bytes

Contents

module Sprinkle
  module Installers
    # = 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
    #
    class Brew < Installer
      attr_accessor :formulas #:nodoc:

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

      protected

        def install_commands #:nodoc:
          "brew install #{@formulas.join(' ')}"
        end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sprinkle-0.4.2 lib/sprinkle/installers/brew.rb