Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Added "ruby" cookbook for maintaining binary ruby distribution #172

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Added "ruby" cookbook for maintaining binary ruby distribution #172

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 9, 2015

Fixes #166

EOM
not_if { File.directory?(File.join('opt', 'rbenv', 'versions', ruby_version)) }
version, rbenv_versions_path = app_info[:ruby_version], "/opt/rbenv/versions"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace detected.

let(:chef_run) { ChefSpec::SoloRunner.converge(described_recipe) }

it "installs ruby" do
expect(chef_run).to install_package("foo")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to actually test something here, right? :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we do. I'm adding some meaningful tests right now

@jvanbaarsen
Copy link
Contributor

I just looked at the code quickly, overall it looks good. Did not try to run it though. Also I'm thinkin about the cookbook name. Maybe we should name it: intercity-ruby that way it wont collide with other cookbooks in the supermarket. @berkes What do you think about prefixing our cookbooks with intercity-* for above reasons?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make sure ruby is still compiled if the binary server is gone
3 participants