[chef] Re: Re: [ANN] execute a single Chef recipe with chef-recipe command


Chronological Thread 
  • From: Bryan Berry < >
  • To:
  • Subject: [chef] Re: Re: [ANN] execute a single Chef recipe with chef-recipe command
  • Date: Sun, 18 Nov 2012 21:04:49 +0100

I would be happy to try. Forgive me if I ask dumb questions, working w/ real Ruby libraries is still a new experience for me.

To be honest, the part of this code that I understand the least is the monkey-patch from your orginal gist

class Chef::Client
    attr_reader :events
 end

I assume that to get rid of the monkey patch, I would just add `attr_reader :events` directly to lib/chef/client.rb, correct?
  
by tests, are you looking for something like this? https://github.com/opscode/chef/blob/master/spec/unit/application/solo_spec.rb


tks again for the original gist.

I would also like to merge in my changes from chef-rewind. Keep meaning to do that

On Sun, Nov 18, 2012 at 8:14 PM, Daniel DeLeo < " target="_blank"> > wrote:

On Sunday, November 18, 2012 at 1:58 AM, Bryan  Berry wrote:

Hey Chefs,

I have started training more ppl at $DAYJOB and found that I need a quicker way get new users started with Chef. I usually only have 20-30 minutes maximum to get a user started with Chef. Explaining resources, recipes, cookbooks, roles, environments, etc. easily takes up 1 hour. I needed a way to give my users comfortable w/ the ideas of resources and the concept of a recipe w/ in w/in 20 minutes. The user also needs to do something hands-on w/in that 20 minutes. In the 2nd training session i would introduce chef-solo and cookbooks.

To this end I have created chef-recipe https://github.com/bryanwb/chef-recipe, which evaluates a single recipe   `chef-recipe RECIPE_FILE`  . It is largely based on a gist from Daniel DeLeo (thanks Dan!)  It works pretty much the same as puppet-apply. 

You can install chef-recipe as a gem `gem install chef-recipe`

chef-recipe is meant only as a training tool and not to be used for any real work. It is just a stepping stone to learning chef-solo and chef-client

This is totally alpha and I would love some feedback!
This is most of the way towards what we'd need to merge it into chef proper. Just needs some tests and to take the monkey patching stuff out. Interested in contributing it?

-- 
Daniel DeLeo





Archive powered by MHonArc 2.6.16.

§