Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Latest commit

 

History

History
84 lines (56 loc) · 1.78 KB

README.md

File metadata and controls

84 lines (56 loc) · 1.78 KB

sprout-chruby cookbook

Build Status

Manage chruby on OS X

Usage

Prerequisites

Quickstart

bundle
bundle exec soloist

Cookbook Usage

Attributes

NOTE: All preferences are namespaced under sprout => chruby they include:

  • [auto_change_ruby] — Boolean indicating whether to enable auto-switching in chruby
  • ['default_ruby'] — the default ruby version to use
  • ['rubies'] — rubies to install, a hash of interpreter to versions
    • ex: {'ruby' => ['1.9.3', '2.1.3'], 'jruby' => ['1.7.16']
  • [rubies_dir] The location where rubies should be installed, default is node['sprout']['home']/.rubies per chruby docs

Recipes

  1. sprout-chruby
  2. sprout-chruby::chruby
  3. sprout-chruby::default_ruby
  4. sprout-chruby::rubies

Contributing

Before committing

bundle
bundle exec rake

The default rake task includes rubocop, foodcritic, unit specs

bundle
bundle exec rake rubocop
bundle
bundle exec rake foodcritic

Unit specs

Unit specs use ServerSpec

bundle
bundle exec rake spec:unit

Integration specs

Integrations specs will run the default recipe on the host system (destructive) and make assertions on the system after install.

Note: It has a precondition that chruby is not already installed on the system.

bundle
bundle exec rake spec:integration