Install Homebrew, a package manager for Mac OS X.
include homebrew
# Declaring a custom package formula, and installing package
class clojure {
homebrew::tap { 'homebrew/versions': }
homebrew::formula {
'clojure': ; # source defaults to puppet:///modules/clojure/brews/clojure.rb
'leinengen':
source => 'puppet:///modules/clojure/brews/leinengen.rb' ;
}
package {
'boxen/brews/clojure':
ensure => 'aversion' ;
'boxen/brews/leinengen':
ensure => 'anotherversion' ;
}
}
# Installing homebrew formulas, and passing in arbitrary flags, like:
# brew install php54 --with-fpm --without-apache
package { 'php54':
ensure => present,
install_options => [
'--with-fpm',
'--without-apache'
],
require => Package['zlib']
}
boxen
, >= 1.2repository
, >= 2.0stdlib
, >= 4.0
Write code. Run script/cibuild
to test it. Check the script
directory for other useful tools.