I'm taking some time to refactor a custom provider.  I'm trying to move 
common code into a parent provider so that it can be shared among all 
custom resource providers in the puppet module.  While verifying I can call 
methods in the parent provider I get the following error:

Error: Could not prefetch jboss7_deployment provider 'jboss7': 
    undefined method `echo' for 
Puppet::Type::Jboss7_deployment::ProviderJboss7:Class

Here are the relevant snippets of code

class Puppet::Provider::Jboss7 < Puppet::Provider
  def echo(arg)
    info arg
  end
end

require 'puppet/provider/jboss7'
Puppet::Type.type(:jboss7_deployment).provide(:jboss7, :parent => 
Puppet::Provider::Jboss7) do
  echo "hello world"
  ...
end

I modeled this code after the puppetlabs F5 code on the forge.  
https://github.com/puppetlabs/puppetlabs-f5  I am running puppet version 
3.0.0.  Any thoughts on why the jboss7_deployment resource provider code 
cannot access the echo method of the parent provider?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to