[chef] Re: reg chef::mixin


Chronological Thread 
  • From: Tyler Ball < >
  • To: Indra k < >
  • Cc: " " < >
  • Subject: [chef] Re: reg chef::mixin
  • Date: Wed, 25 Feb 2015 07:21:56 -0800

If you are inside a recipe, the Chef::Mixing::Shellout module is already included (IE, it is already mixed in).  So from within a recipe you can simply call `shell_out(“tar xvfC”)` or `shell_out!(“tar xvfC”)`.

If you would like to mixin the Shellout module to another class you add an `include Chef::Mixin::Shellout` to the class.  This adds the methods defined in that module to the class.

-T


HI all,

How to use Chef::mixin::commnand?

          Whether its a deprecated  one ,Chef::mixin::shellout?
My command is like this:
Chef::Mixin::Command.run_command(:command => "tar xvfC  "


Thanks ,
Indu




Archive powered by MHonArc 2.6.16.

§