Created
September 12, 2014 15:05
-
-
Save brett-petrusek/3314f8e5c958434f5aca to your computer and use it in GitHub Desktop.
Installing prereq gems and packages during recipe compile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkg_gcc = package 'gcc' do | |
action :nothing | |
end | |
pkg_gcc.run_action(:install) | |
pkg_sqlite = package 'sqlite-devel' do | |
action :nothing | |
end | |
pkg_sqlite.run_action(:install) | |
sqlite3_gem = chef_gem 'sqlite3' do | |
action :nothing | |
end | |
sqlite3_gem.run_action(:install) | |
require 'sqlite3' | |
Gem.clear_paths |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment