Sha256: 34b020fc15540dbf53a5046ef277fc0df3446d340216459c4717a3500c2de5a8
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
module VagrantPlugins module Ventriloquist module Services class PostgreSQL < Service def initialize(*args) super @config[:ports] ||= ['5432:5432'] end def provision(machine) super @machine = machine install_client install_headers export_host end protected def install_client if @machine.guest.capability?(:pg_install_client) @machine.guest.capability(:pg_install_client) else @machine.env.ui.warn 'Unable to install the PostgreSQL client' end end def install_headers if @machine.guest.capability?(:pg_install_headers) @machine.guest.capability(:pg_install_headers) else @machine.env.ui.warn 'Unable to install PostgreSQL header files' end end def export_host @machine.guest.capability(:pg_export_pghost) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ventriloquist-0.4.1 | lib/ventriloquist/services/postgresql.rb |
ventriloquist-0.4.0 | lib/ventriloquist/services/postgresql.rb |