title: Using class methods from libraries in a recipe
body: <p>I am just trying to create a simple cookbook in chef. I am using libraries as a learning process.</p>
  
  <pre class="lang-rb prettyprint-override"><code>module ABC
    class YumD
      def self.pack (*count)
        for i in 0...count.length
          yum_packag "#{count[i]}" do
            action :nothing
          end.run_action :install
        end
      end
    end
  end
  </code></pre>
  
  <p>When I call this in the recipe I get a compile error which says</p>
  
  <pre><code>undefined method `yum_package' for ABC::YumD:Class
  </code></pre>