Chef::ShellOut is deprecated, please use Mixlib::ShellOut


#1

Greetings,

I’m brand new to Chef, and I am using Chef-Solo to create a VM using Vagrant and VirtualBox. In several of my recipes I make use of ark, which seems to generate multiple occurrences of the deprecation warning below, with slight variations on each instance of the message:

WARN: Chef::ShellOut is deprecated, please use Mixlib::ShellOut
WARN: Called from:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb:68:in new' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb:68:indownload_direct_from_oracle’
/usr/lib/rubygems/1.8/gems/chef-11.4.0/bin/…/lib/chef/mixin/why_run.rb:52:in call' /usr/lib/rubygems/1.8/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:52:inadd_action’

Is there a newer version of ark I should be using? Or is this tied to the jdk recipe?

Thanks,
Mark Nichols


#2

The latest release of the Java cookbook fixes this:
http://community.opscode.com/cookbooks/java

On Thu, May 2, 2013 at 12:13 PM, Mark H. Nichols code.prole@gmail.comwrote:

Greetings,

I’m brand new to Chef, and I am using Chef-Solo to create a VM using
Vagrant and VirtualBox. In several of my recipes I make use of ark, which
seems to generate multiple occurrences of the deprecation warning below,
with slight variations on each instance of the message:

WARN: Chef::ShellOut is deprecated, please use Mixlib::ShellOut
WARN: Called from:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb:68:in
new' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb:68:indownload_direct_from_oracle’

/usr/lib/rubygems/1.8/gems/chef-11.4.0/bin/…/lib/chef/mixin/why_run.rb:52:in
`call’

/usr/lib/rubygems/1.8/gems/chef-11.4.0/bin/…/lib/chef/mixin/why_run.rb:52:in
`add_action’

Is there a newer version of ark I should be using? Or is this tied to the
jdk recipe?

Thanks,
Mark Nichols