Sha256: d88dd721beb65d662c026c5008943de0b48e6d4d527c044aae943166c77479c1

Contents?: true

Size: 650 Bytes

Versions: 29

Compression:

Stored size: 650 Bytes

Contents

namespace :rubber do

  namespace :discourse do

    after "rubber:postgresql:bootstrap", "rubber:discourse:create_postgres_extensions"

    task :create_postgres_extensions, :roles => :postgresql_master do
      rsudo "export DEBIAN_FRONTEND=noninteractive; apt-get -q -o Dpkg::Options::=--force-confold -y --force-yes install postgresql-contrib"
      rubber.sudo_script "create_extensions", <<-ENDSCRIPT
        sudo -i -u postgres psql -c "CREATE EXTENSION IF NOT EXISTS hstore;" -d "#{rubber_env.db_name}"
        sudo -i -u postgres psql -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;" -d "#{rubber_env.db_name}"
      ENDSCRIPT
    end
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/discourse/config/rubber/deploy-discourse.rb
rubber-3.2.1 templates/discourse/config/rubber/deploy-discourse.rb
rubber-3.2.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-3.1.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-3.0.1 templates/discourse/config/rubber/deploy-discourse.rb
rubber-3.0.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.16.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.15.2 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.15.1 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.15.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.14.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.13.1 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.13.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.12.2 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.12.1 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.12.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.11.0 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.10.2 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.10.1 templates/discourse/config/rubber/deploy-discourse.rb
rubber-2.10.0 templates/discourse/config/rubber/deploy-discourse.rb