From ff4a882eac6e602610cc696c3004e15c9d253c53 Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Mon, 4 May 2015 16:44:15 -0300 Subject: [PATCH] Activate the plugins used for noosfero --- cookbooks/noosfero/recipes/default.rb | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/cookbooks/noosfero/recipes/default.rb b/cookbooks/noosfero/recipes/default.rb index 875f156..781bb75 100644 --- a/cookbooks/noosfero/recipes/default.rb +++ b/cookbooks/noosfero/recipes/default.rb @@ -42,6 +42,13 @@ execute 'plugins:enable' do command '/usr/lib/noosfero/script/noosfero-plugins enable ' + plugins.join(' ') end +execute 'plugins:activate' do + plugins.each do |plugin| + plugin_name = plugin.split("_").collect(&:capitalize).join() + 'Plugin' + command 'rails runner "Environment.default.enable_plugin "' + plugin_name + '""' + end +end + execute 'theme:enable' do command 'psql -h database -U noosfero --no-align --tuples-only -q -c "update environments set theme=\'noosfero-spb-theme\' where id=1;"' end -- libgit2 0.21.2