[chef] Re: Specifying a remote source with gem_package


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] Re: Specifying a remote source with gem_package
  • Date: Wed, 20 Nov 2013 02:18:23 -0800

http://docs.opscode.com/resource_gem_package.html

"Options can be specified in a .gemrc file. By default the gem_package resource will use the Ruby interface to install gems which will ignore the .gemrc file. The gem_package resource can be forced to use the gems command instead (and to read the .gemrc file) by adding the gem_binary attribute to a code block."

Example

gem_package "nokogiri" do
  gem_binary "gem"
end

That's probably your best bet.

--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS


On Wed, Nov 20, 2013 at 2:10 AM, william pink < " target="_blank"> > wrote:
Hi,

I want to point gem_package at my Gem server, what's the best way of doing this? Adding another remote source or specifying in the recipe somehow?

Thanks,
Will




Archive powered by MHonArc 2.6.16.

§