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

Commit

Permalink
install rubygems 2.2.2
Browse files Browse the repository at this point in the history
dwradcliffe committed Jun 18, 2014

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 4f7d40c commit 2f6452b
Showing 3 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cookbooks/rubygems-app/recipes/rubygems.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# Cookbook Name:: rubygems-app
# Recipe:: rubygems
#

node.default['rubygems']['rubygems_version'] = '2.2.2'

execute "gem update --system #{node['rubygems']['rubygems_version']}" do
action :run
environment 'REALLY_GEM_UPDATE_SYSTEM' => 'true'
not_if "gem -v | grep -q '#{node['rubygems']['rubygems_version']}'"
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

describe 'rubygems-app::rubygems' do

describe command('gem -v') do
it { should return_stdout(/2\.2\.2/) }
end

end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'serverspec'

include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS
include Serverspec::Helper::Properties

0 comments on commit 2f6452b

Please sign in to comment.