Commit 0c36fc95dd9a270e8b8234783305c56372824b74

Authored by Antonio Terceiro
1 parent c6c86297

noosfero: *temporarily* disable spb plugins before migrating

Showing 1 changed file with 12 additions and 5 deletions   Show diff stats
cookbooks/noosfero/recipes/default.rb
@@ -51,17 +51,24 @@ execute 'plugins:enable' do @@ -51,17 +51,24 @@ execute 'plugins:enable' do
51 command '/usr/lib/noosfero/script/noosfero-plugins enable ' + plugins.join(' ') 51 command '/usr/lib/noosfero/script/noosfero-plugins enable ' + plugins.join(' ')
52 end 52 end
53 53
  54 +plugins_spb = [
  55 + 'software_communities',
  56 + 'gov_user',
  57 + 'spb_migrations',
  58 +]
  59 +
  60 +# HACK disable plugins_spb before migrating
  61 +# FIXME fix the plugins to not depend on other pugins
  62 +execute 'noosfero:plugins_spb:disable' do
  63 + command '/usr/lib/noosfero/script/noosfero-plugins disable ' + plugins_spb.join(' ')
  64 +end
  65 +
54 execute 'noosfero:migrate' do 66 execute 'noosfero:migrate' do
55 command 'RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate' 67 command 'RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate'
56 cwd '/usr/lib/noosfero' 68 cwd '/usr/lib/noosfero'
57 user 'noosfero' 69 user 'noosfero'
58 end 70 end
59 71
60 -plugins_spb = [  
61 - 'software_communities',  
62 - 'gov_user',  
63 - 'spb_migrations',  
64 -]  
65 72
66 #FIXME: We did it, because we have to enable each plugin and migrate it separately. 73 #FIXME: We did it, because we have to enable each plugin and migrate it separately.
67 plugins_spb.each do |plugin| 74 plugins_spb.each do |plugin|