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
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
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
On Feb 25, 2015, at 2:44 AM, Indra k indra.k@cloudenablers.com wrote:
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