Specifying a remote source with gem_package


#1

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


#2

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 will.pink@gmail.com 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