[chef] howto install a ruby gem that's a pre-req of a chef recipe


Chronological Thread 
  • From: Joshua Blatt < >
  • To:
  • Subject: [chef] howto install a ruby gem that's a pre-req of a chef recipe
  • Date: Tue, 14 Aug 2012 19:55:55 -0700

Hi guys,

Wondering if you can help me with a little ordering issue.

I want to create a library with an s3_file resource and provider:  
https://gist.github.com/470321

That code depends on the aws-s3 ruby gem http://amazon.rubyforge.org

My reading of http://wiki.opscode.com/display/chef/Anatomy+of+a+Chef+Run ;
makes me think the gem won't be installed until the execution phase but it'll 
be ruby required in the compilation phase. 

Is there a way to install a ruby gem earlier in the process?   Seems like the 
sort of thing that'd be really useful every once in a while.

Thanks,

Josh


Archive powered by MHonArc 2.6.16.

§