Skip to content

Instantly share code, notes, and snippets.

@brett-petrusek
Created September 12, 2014 15:05
Show Gist options
  • Save brett-petrusek/3314f8e5c958434f5aca to your computer and use it in GitHub Desktop.
Save brett-petrusek/3314f8e5c958434f5aca to your computer and use it in GitHub Desktop.
Installing prereq gems and packages during recipe compile
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