+ if params[:piwik_configuration]
+ file "#{rails_directory}/config/piwik.yml" do
+ owner rails_user
+ group rails_group
+ mode 0664
+ content YAML.dump(params[:piwik_configuration])
+ notifies :run, resources(:execute => "#{rails_directory}/public/assets")
+ end
+ else
+ file "#{rails_directory}/config/piwik.yml" do
+ action :delete
+ notifies :run, resources(:execute => "#{rails_directory}/public/assets")
+ end
+ end
+