【发布时间】:2017-10-15 18:26:39
【问题描述】:
我有一个配方,其中包含以下代码,但未通过 lint 测试:
service 'apache' do
supports :status => true, :restart => true, :reload => true
end
它失败并出现错误:
Use the new Ruby 1.9 hash syntax.
supports :status => true, :restart => true, :reload => true
不确定新语法是什么样的...有人可以帮忙吗?
【问题讨论】:
标签: ruby chef-recipe rubocop