Bootstrap Your Mac.
This is just a chef-solo wrapper to configure laptop(os x only!). It was very inspired by github boxen and pivotal sprout.
Install Xcode, Command Line Tools, Homebrew, Chef...etc.
$ git clone https://github.com/wantedly/cooker.git && cd cooker
$ script/cooker
If your project need to install some homebrew formulas/casks,
just add the formulas/casks to roles/projects.rb
(chef role file)
This is an example that adding git, openssl, chrome, hipchat, dropbox.
name "projects"
description "Run list for each project."
run_list(
"recipe[homebrew]", # Don't remove this
"recipe[homebrew::bundle]" # Don't remove this
)
override_attributes({
"homebrew" => {
"formulas" => [
"git",
"openssl",
],
"casks" => [
"google-chrome",
"hipchat",
"dropbox"
]
}
})
Also, you can write a chef recipe.
Add your recipe under cookbooks/projects/recipes
log "Welcome to some project!"
and add your recipe to run list in projects role.
name "projects"
description "Run list for each project."
run_list(
"recipe[homebrew]", # Don't remove this
"recipe[homebrew::bundle]", # Don't remove this
"recipe[projects::your-project-recipe]"
)
override_attributes({
"homebrew" => {
"formulas" => [
"git",
"openssl",
],
"casks" => [
"google-chrome",
"hipchat",
"dropbox"
]
}
})
Same as projects setting, you can write a personal recipe under
cookbooks/people/recipes
directory.
For example, if your username in mac is 'seigo',
you need to create a file named seigo.rb
.
This recipe will be added to run list automatically.