0
我想測試Ark食譜。爲了做到這一點,我創建了一個名爲食譜和test_ark包括配方default.rb:NoMethodError:'Chef :: Recipe'沒有名爲`ark'的資源或方法(廚師應用食譜)「'
# Copyright (c) 2017 The Authors, All Rights Reserved.
ark 'example' do
url "http://apache.claz.org/kafka/0.10.2.1/kafka_2.10-0.10.2.1.tgz"
end
當我運行「廚師申請test_ark/default.rb」執行default.rb食譜,我得到錯誤的標題:
[2017-06-02T10:48:18-04:00] FATAL: Stacktrace dumped to /Users/nackerman/.chef/cache/chef-stacktrace.out
[2017-06-02T10:48:18-04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-06-02T10:48:18-04:00] FATAL: NoMethodError: No resource or method named `ark' for `Chef::Recipe "(chef-apply recipe)"'
我已經包含在我的Berksfile的「方舟」食譜:
cookbook 'ark'
而且我已經包含其作爲metadata.rb文件的依賴性:
depends 'ark'
從'ark'cookbook中'ark'塊需要做什麼才能在default.rb配方中可見?