Skip to content

Instantly share code, notes, and snippets.

@fujin
Forked from jordandm/gist:1879612
Created February 21, 2012 22:54
Show Gist options
  • Save fujin/1879618 to your computer and use it in GitHub Desktop.
Save fujin/1879618 to your computer and use it in GitHub Desktop.
Revised side-wise install recipe
#
# Cookbook Name:: awsclient
#
include_recipe "aws"
# Removing dependency on api, do not believe it is required.
# include_recipe "apt"
packages = value_for_platform( "centos" => { "default" => %w[libxml2 libxml2-devel libxslt-devel] } )
packages.each { |p| yum_package(p) { action :nothing}.run_action(:install) }
# Install gem using package, not gem install.
ruby_package = gem_package "fog" do
action :nothing
end
ruby_package.run_action(:install)
require 'rubygems'
Gem.clear_paths
require 'fog'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment