define :mediawiki_extension, :action => [ :enable ], :variables => {} do
name = params[:name]
site = params[:site]
- site_directory = node[:mediawiki][:sites][site][:site_directory]
mediawiki_directory = node[:mediawiki][:sites][site][:directory]
extension_directory = "#{mediawiki_directory}/extensions/#{name}"
source = params[:source]
mode 0664
content "<?php require_once('#{extension_directory}/#{name}.php');\n"
only_if do File.exist?("#{extension_directory}/#{name}.php") end
- notifies :create, resources(:template => "#{mediawiki_directory}/LocalSettings.php")
+ notifies :create, resources(:template => "#{mediawiki_directory}/LocalSettings.php")
end
end