Skip to content

Instantly share code, notes, and snippets.

@fujin
Forked from thommay/application.rb
Created October 14, 2009 09:51
Show Gist options
  • Select an option

  • Save fujin/209929 to your computer and use it in GitHub Desktop.

Select an option

Save fujin/209929 to your computer and use it in GitHub Desktop.
def initialize(name, collection=nil, node=nil)
super(name, collection, node)
puts "Overridden initialize"
@provider = Chef::Provider::Tomcat6Application
end
actions :create, :delete
attribute :name, :kind_of => String, :name_attribute => true
attribute :config_dir, :kind_of => String
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource.rb:255: warning: multiple values for a block parameter (0 for 1)
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:51
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource.rb:255: warning: multiple values for a block parameter (0 for 1)
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/platform.rb:139
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/platform.rb:147:in `find_provider': Cannot find a provider for tomcat6_application[bf-content-server] on centos version 5.3 (ArgumentError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment