title: Debug Ohai plugins in irb shell
body: <p>I've installed a chef-workstation on my computer.</p>
  
  <pre><code> ohai --version #returns: 15.7.4
  </code></pre>
  
  <p>I also installed the Ohai cookbook from the supermarket. If I integrate this into my test cookbook, the self-written Ohai plug-in will be executed as expected.</p>
  
  <p>Now I want to try to use Ruby</p>
  
  <pre><code>s "irb" shell to debug the self-written ohai plugin step by step. 
  
  Unfortunately 
  
      irb
      &gt; require 'ohai'  # ==&gt; true
      &gt; Ohai::Config[:plugin_path] &lt;&lt; '/home/ohai_plugins'
  </code></pre>
  
  <p>produces the error message "LoadError (NoMethodError (undefined method &lt;&lt;' for nil:NilClass)". When I use</p>
  
  <pre><code>&gt;  Ohai::Config[:plugin_path] = '/home/ohai_plugins'
  &gt;  #=&gt; "/home/ohai_plugins"
  </code></pre>
  
  <p>it seems to work. But installing the system shows that there is no <code>plugin_path</code> installed...</p>
  
  <pre><code>&gt; o = Ohai::System.new
  &gt; #&lt;Ohai::System:0x000055a67d5055b8 @cli=nil, @plugin_path="", @config={}
  </code></pre>
  
  <p>When I try to get further the attribute from my test Ohai plugin can not be found.</p>
  
  <pre><code>&gt; o.all_plugins
  &gt; o.attributes_print("awesome_level") 
  &gt; #ArgumentError (I cannot find an attribute named awesome_level!)
  </code></pre>