[chef] Re: Re: Capture output from a command or read contents from a file


Chronological Thread 
  • From: Harlan Barnes < >
  • To:
  • Subject: [chef] Re: Re: Capture output from a command or read contents from a file
  • Date: Tue, 17 Jan 2012 17:39:10 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=pobox.com; h=mime-version :reply-to:in-reply-to:references:date:message-id:subject:from:to :content-type; q=dns; s=sasl; b=u0yXPQ22xWAkKu34pA93suAQ69i1zEgu 0GLHrNq7qDlt1FGoRXmNkJVzoW7EmUtjWAB1nzUYrGaW01mAqTx1ckOuCrNLZpjk Njd8qlqXvMAHSEnuLvjAaY2Xh5sTu8Tx8IrpDMy2TchIaUZaJfTnREUHhE8c0A56 IIwrauZWyf0=

On Tue, Jan 17, 2012 at 4:44 PM, Matt Ray < "> > wrote:
Take a look at using Mixlib::ShellOut (previously Chef::ShellOut).
https://github.com/opscode/mixlib-shellout

Here's an outdated example (needs to be updated to Mixlib from Chef).
https://github.com/opscode/cookbooks/blob/master/drbd/recipes/pair.rb#L49

Thanks Matt. This is probably a stupid question, but Is Mixlib::ShellOut packaged with Chef? I don't see it in the latest version and gem install mixlib-shellout fails ("not in any repository"). I just wanted to make sure before I download and install it from github.



Archive powered by MHonArc 2.6.16.

§