Project

brew

0.0
No commit activity in last 3 years
No release in over 3 years
Run some basic brew commands from ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
~> 5.0
~> 12.0
 Project Readme

brew

Gem Version

A very simple gem to run some homebrew commands from your ruby code. If the brew executable is not installed, the constructor will throw an exception immediately.

Installation

Add this line to your application's Gemfile:

gem 'brew'

And then execute:

$ bundle install

Usage

Two steps!

  1. Create a client:
homebrew = Brew::HomeBrew.new

(will raise an exception if brew is not installed)

  1. brew to your heart's content!
homebrew.update

homebrew.install('rbenv')

homebrew.upgrade('redis')

homebrew.uninstall('rbenv')

Available commands are: info, install, list, uninstall, update, upgrade (will raise an exception if any of the commands fail)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/acroos/brew-rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct (mentioned below).

Code of Conduct

Everyone interacting in the brew-rb project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.