Rebuild

Development environment bootstrap automation toolkit for OSX

What's this?

rebuild allows you to achieve mouse-free command line tools installation in OSX Yosemite.
Then rebuild clones your GitHub repository and runs all of your bootstrap scripts.

You can setup or synchronize your environment by just executing rebuild <username>/<project>

Usage

Full automated command line tools installation

$ sudo gem install rebuild
$ rebuild

You can install command line tools to clean-installed Yosemite only by typing rebuild.

Environment Bootstrap

$ sudo gem install rebuild
$ rebuild k0kubun/dotfiles

After installing command line tools, the archive of repository is unzipped to /tmp/k0kubun/dotfiles. Then executes all of /tmp/k0kubun/dotfiles/*.sh.

Options

# By default, git pull is not executed.
# If you want to synchronize repository before running scripts, add -f.
$ rebuild -f

# Repository will be cloned to ~/src/github.com/k0kubun/dotfiles
$ rebuild -d ~/src/github.com/k0kubun/dotfiles

# Run /tmp/k0kubun/dotfiles/script/*.sh instead of /tmp/k0kubun/dotfiles/*.sh
$ rebuild -s script

Supported OS

  • 10.10 Yosemite
  • 10.9 Maverics

Prior to 10.8 Mountain Lion, features except command line tools installation are still supported.

TODO

  • revision lock
  • more flexible upstream pull

License

MIT License