NoMethodError无法解决

时间:2014-12-08 03:57:55

标签: ruby jboss chef

状态NoMethodError

时无法解决此错误
Recipe Compile Error in /var/chef/cache/cookbooks/jbosseap/recipes/default.rb

NoMethodError
-------------
No resource or method named jboss for `Chef::Recipe "default_deploy_list"'

Cookbook Trace:
---------------
  /var/chef/cache/cookbooks/jbosseap/recipes/default_deploy_list.rb:1:in from_file
  /var/chef/cache/cookbooks/jbosseap/recipes/default.rb:15:in from_file

> Relevant File Content:
>/var/chef/cache/cookbooks/jbosseap/recipes/default_deploy_list.rb:

>  1 jboss 'testweb' do

 > 2:    source "https://s3-us-west-2.amazonaws.com/chef.repos/testweb.zip"

  >3:    action :deploy

  >4:  end

我该怎么办?

1 个答案:

答案 0 :(得分:0)

该食谱中的jboss是什么?您可能错过了metadata.rb文件中的依赖项。 Chef对您声明的jboss['testweb']资源一无所知。