title: Extending Chef IIS Pool LWRP
body: <p>I would like to extend the Chef IIS Pool LWRP (<a href="https://github.com/chef-cookbooks/iis/blob/master/resources/pool.rb" rel="nofollow">https://github.com/chef-cookbooks/iis/blob/master/resources/pool.rb</a>) and I was hoping someone could help me figure out the syntax.</p>
  
  <p>This is where I'm at:<br>
  I created a new cookbook and then I referenced the IIS cookbook,
  afterwards I created this file in the libraries folder of me:   </p>
  
  <pre><code># Located At: myCookbook/libraries/my_iis_pool.rb:
  ::Chef::Recipe.send(:include, Opscode::IIS)
  
  class Chef
    class Resource::MyPool &lt; Chef::Resource::IIS::Pool
      # Some Magic Happens
    end
  end
  </code></pre>
  
  <p>and then the recipe looks like this: </p>
  
  <pre><code># Located At: myCookbook/recipes/default.rb 
  mypool 'new-pool' do
  end
  </code></pre>
  
  <p>I can't seem to get the &lt; Chef::Resource::IIS::Pool inherit statement correct. 
  It produces this error:<br>
  <em>NameError: uninitialized constant Chef::Resource::IIS</em> </p>
  
  <p>I've also tried  </p>
  
  <pre><code>class Resource::MyPool &lt; Chef::ResourceResolver.resolve(:iis_pool)
  </code></pre>
  
  <p>which produces this error:<br>
  <em>TypeError: superclass must be a Class (NilClass given)</em>  </p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks,<br>
  Abrehm</p>