Commit ff4a882eac6e602610cc696c3004e15c9d253c53
1 parent
94075470
Exists in
master
and in
90 other branches
Activate the plugins used for noosfero
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Thiago Ribeiro <thiagitosouza@gmail.com>
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
cookbooks/noosfero/recipes/default.rb
... | ... | @@ -42,6 +42,13 @@ execute 'plugins:enable' do |
42 | 42 | command '/usr/lib/noosfero/script/noosfero-plugins enable ' + plugins.join(' ') |
43 | 43 | end |
44 | 44 | |
45 | +execute 'plugins:activate' do | |
46 | + plugins.each do |plugin| | |
47 | + plugin_name = plugin.split("_").collect(&:capitalize).join() + 'Plugin' | |
48 | + command 'rails runner "Environment.default.enable_plugin "' + plugin_name + '""' | |
49 | + end | |
50 | +end | |
51 | + | |
45 | 52 | execute 'theme:enable' do |
46 | 53 | command 'psql -h database -U noosfero --no-align --tuples-only -q -c "update environments set theme=\'noosfero-spb-theme\' where id=1;"' |
47 | 54 | end | ... | ... |