/sprout-homebrew

contains meta recipe to install homebrew casks and formulae using attributes defined in soloistrc only

Primary LanguageRubyMIT LicenseMIT

sprout-homebrew cookbook

Build Status

A Chef cookbook to install Homebrew formulae for packages and casks for applications.

Usage

Prerequisites

Quickstart

bundle
bundle exec soloist

Cookbook Usage

Attributes

NOTE: All preferences are namespaced under sprout => homebrew they include:

  • formulae — The list of brew packages to install
    • To install the formula at the HEAD revision (rather than stable), use a hash with the following keys:
      • name — The name of the package
      • head — Set to true
  • casks — The list of casks to install
  • launchctl — The list of packages to automatically start (managed by launchctl). Each package is a key value e.g. tor: load where the value is one of:
    • load — Start the package at system start, and launch immediately
    • unload — Do not start the package at system start, and stop if currently running
    • reload — Reload a package already set to start at system start

Recipes

  1. sprout-homebrew
  2. sprout-homebrew::formulae
  3. sprout-homebrew::casks
  4. sprout-homebrew::casks
  5. sprout-homebrew::launchctl

Contributing

Before committing

bundle
bundle exec rake

The default rake task includes rubocop, foodcritic, unit specs

bundle
bundle exec rake rubocop
bundle
bundle exec rake foodcritic

Unit specs

Unit specs use ServerSpec

bundle
bundle exec rake spec:unit

Integration specs

Integrations specs will run the default recipe on the host system (destructive) and make assertions on the system after install.

bundle
bundle exec rake spec:integration