[chef] Re: Embedded Chef


Chronological Thread 
  • From: AJ Christensen < >
  • To:
  • Subject: [chef] Re: Embedded Chef
  • Date: Tue, 26 Oct 2010 10:52:49 -0700

What does this buy you over using Chef (at least Chef Solo)? directly?

On 26 October 2010 08:45, Jonathan Weiss < "> > wrote:
Cheers,


Is there an easy way to use the various resources from a Ruby script.
This is what I want to be able to do:

# pseudo-script

require 'rubygems'
require 'chef'

Chef::Package("apache2", :action =">" :upgrade)
Chef::Service("apache2", :action =">" [:enable, :start])

Is there a nice API to do this?

Thanks,
Jonathan

--
Jonathan Weiss
http://blog.innerewut.de
http://twitter.com/jweiss




Archive powered by MHonArc 2.6.16.

§