Skip to content

acroos/brew-rb

Repository files navigation

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.

About

Run some basic brew commands from ruby

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published