On Saturday, January 26, 2013 at 3:56 AM, Sachin Sagar Rai wrote:
Ohai! chefs!My Recipe has to import from S3, extract and seed the data from the mysqldump.To do this, I want it using ruby and the aws-sdk gem.AFAIK, the ruby code in the recipe file is evaluated at compil time and the ones that are inside `ruby_block` is evaluated at convergence time.So if I do `require 'aws'`, it won't since its not installed. When I add it inside the ruby_block, it errors out.So to fix it, I used the `chef_gem 'aws-sdk'`, but this will run at the compile time which is fine.But to install it, it depends on packages like lib-xml2 to be installed too at the compile time.
Archive powered by MHonArc 2.6.16.