Coder Social home page Coder Social logo

rebuild's Introduction

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.
And rebuild clones your GitHub repository and runs all of your bootstrap scripts.

You can setup or synchronize your environment by executing rebuild [username]/[repository].

Installation

$ gem install rebuild

Usage

Clean-installed bootstrap

# For example: rebuild k0kubun/dotfiles
$ rebuild [username]/[repository]

No need to touch your mouse. Rebuild will click buttons for you in command line tools installation. Just typing the command allows you to reproduce your development environment.

Your repository will be available at ~/[repository].

Sync multiple environments

# force update repository by `-f`
$ rebuild -f k0kubun/dotfiles

If you manage your development environment on GitHub repository, you can use this gem to synchronize multiple environments.

install.sh runner

# It will run:
# https://raw.githubusercontent.com/[username]/dotfiles/master/install.sh"
$ rebuild [username]

If you have dotfiles repository and install.sh in the root, you can execute it with a simple command.

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 ~/dotfiles/script/*.sh instead of ~/dotfiles/*.sh
$ rebuild -s script

# You can choose which script to run first by shell pipeline
rebuild <<-EOS
  first.sh
  second.sh
EOS

Config

You can skip choosing option by ~/.gitconfig

# ~/.gitconfig
# You can append config template by `rebuild config`

[rebuild]
  # if true, everytime git pull
  update = false

  # you can change script run directory
  scriptdir = script

  # if present, you can `rebuild` without argument
  repo = k0kubun/dotfiles

  # cloned directory path
  directory = ~/src/github.com/k0kubun/dotfiles

  # selected scripts are executed primarily in this order
  dependency = brew.sh ruby.sh

Supported OS

  • 10.10 Yosemite
  • 10.9 Maverics

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

License

MIT License

rebuild's People

Contributors

k0kubun avatar

Stargazers

Emily Marigold Klassen avatar  avatar Mark avatar  avatar Takuya Kosugiyama avatar David Authier avatar Yuta Totz avatar Alex Safatli avatar Hiroki Nagasawa avatar Ryo Aoyama avatar alitaso345 avatar Ryuichi Nakajima avatar Myo Htet Aung avatar Takayuki Yuasa avatar Takafumi Yamaguchi avatar Koichi Shiraishi avatar Yasuhiro SHIMIZU avatar Hitoshi Honma avatar Yoshiya Hinosawa avatar Keiji Matsuzaki avatar Daijiro Wachi avatar st44100 avatar HIRAKI Satoru avatar Hidekazu Tanaka avatar tmarumt avatar Kento Nagata avatar Ben avatar Sebastian Szturo avatar Mitsutaka Mimura avatar Mihail Szabolcs avatar Yuki Nishijima avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.