# Reg chef::mixin

**URL:** <https://discourse.chef.io/t/reg-chef-mixin/6349>\
**Category:** Chef Infra (archive)\
**Created:** [February 25, 2015, 10:44am UTC](https://discourse.chef.io/t/reg-chef-mixin/6349 "2015-02-25T10:44:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indra\_k](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@Indra\_k](https://discourse.chef.io/u/Indra_k)\
**Post date:** [February 25, 2015, 10:44am UTC](https://discourse.chef.io/t/reg-chef-mixin/6349/1 "2015-02-25T10:44:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tyler\_Ball](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tyler_ball/32/14_2.png) [@Tyler\_Ball](https://discourse.chef.io/u/Tyler_Ball)\
**Post date:** [February 25, 2015, 3:21pm UTC](https://discourse.chef.io/t/reg-chef-mixin/6349/2 "2015-02-25T15:21:56Z")

</div>

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](mailto: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
