Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -19,9 +19,16 @@
|
||||
|
||||
gem_version = run_context.cookbook_collection[cookbook_name].metadata.version
|
||||
|
||||
chef_gem('chef-sugar') do
|
||||
version gem_version
|
||||
action :nothing
|
||||
end.run_action(:install)
|
||||
if Chef::Resource::ChefGem.instance_methods(false).include?(:compile_time)
|
||||
chef_gem 'chef-sugar' do
|
||||
version gem_version
|
||||
compile_time true
|
||||
end
|
||||
else
|
||||
chef_gem 'chef-sugar' do
|
||||
version gem_version
|
||||
action :nothing
|
||||
end.run_action(:install)
|
||||
end
|
||||
|
||||
require 'chef/sugar'
|
||||
|
||||
Reference in New Issue
Block a user