X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..9de17ece169e2c0f91c5545b328fc0cc2fc6a0f4:/cookbooks/mediawiki/resources/extension.rb diff --git a/cookbooks/mediawiki/resources/extension.rb b/cookbooks/mediawiki/resources/extension.rb index 48ba062ec..95c7dff22 100644 --- a/cookbooks/mediawiki/resources/extension.rb +++ b/cookbooks/mediawiki/resources/extension.rb @@ -19,7 +19,7 @@ default_action :create -property :extension, :kind_of => String, :name_attribute => true +property :extension, :kind_of => String, :name_property => true property :site, :kind_of => String, :required => true property :source, :kind_of => String property :template, :kind_of => String @@ -64,7 +64,7 @@ action :create do end end - if new_resource.template # ~FC023 + if new_resource.template declare_resource :template, "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.extension}.inc.php" do cookbook new_resource.template_cookbook source new_resource.template