- From: Daniel DeLeo <
>
- To:
- Cc:
- Subject: [chef] Re: Re: Re: Capture output from a command or read contents from a file
- Date: Tue, 17 Jan 2012 15:07:51 -0800
On Tuesday, January 17, 2012 at 2:39 PM, Harlan Barnes wrote:
>
On Tue, Jan 17, 2012 at 4:44 PM, Matt Ray
>
<
>
>
(mailto:
)>
>
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.
It's only a prerelease right now, wanted to wait to make it "final."
Anyway, using Chef::ShellOut should be fine, and compatibility should be
maintained even when we switch to using the mixlib version. The current plan
is to introduce deprecation warnings for Chef::ShellOut starting with Chef
0.11.
--
Dan DeLeo
Archive powered by MHonArc 2.6.16.