Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #38 from AGENTXDEV/postgresql-9.4
Browse files Browse the repository at this point in the history
Upgrade to PostgreSQL 9.4 for OSX
  • Loading branch information
rafaelfranca committed May 7, 2015
2 parents 9d7211b + abffa59 commit d93a6fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions files/brews/postgresql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

class Postgresql < Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.postgresql.org/pub/source/v9.3.2/postgresql-9.3.2.tar.bz2'
sha256 '700da51a71857e092f6af1c85fcd86b46d7d5cd2f2ba343cafb1f206c20232d7'
version '9.3.2-boxen'
url 'http://ftp.postgresql.org/pub/source/v9.4.1/postgresql-9.4.1.tar.bz2'
sha256 '29ddb77c820095b8f52e5455e9c6c6c20cf979b0834ed1986a8857b84888c3a6'
version '9.4.1-boxen'

option '32-bit'
option 'no-perl', 'Build without Perl support'
Expand Down
6 changes: 3 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

$bindir = "${boxen::config::homebrewdir}/bin"
$executable = "${bindir}/postgres"
$datadir = "${boxen::config::datadir}/postgresql-9.3"
$logdir = "${boxen::config::logdir}/postgresql-9.3"
$datadir = "${boxen::config::datadir}/postgresql-9.4"
$logdir = "${boxen::config::logdir}/postgresql-9.4"
$port = 15432

$package = 'boxen/brews/postgresql'
$version = '9.3.2-boxen'
$version = '9.4.1-boxen'

$service = 'dev.postgresql'

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/postgresql__config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
it do
should include_class('boxen::config')

%w(data/postgresql-9.3 log/postgresql-9.3).each do |d|
%w(data/postgresql-9.4 log/postgresql-9.4).each do |d|
should contain_file("/test/boxen/#{d}").with_ensure(:directory)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/postgresql__service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
it do
should contain_service("com.boxen.postgresql").with_ensure(:stopped)

should contain_exec("init-postgresql-db").with_creates("/test/boxen/data/postgresql-9.3/PG_VERSION")
should contain_exec("init-postgresql-db").with_creates("/test/boxen/data/postgresql-9.4/PG_VERSION")
should contain_service("dev.postgresql").with_ensure(:running)
should contain_exec("wait-for-postgresql").with_unless("nc -z 127.0.0.1 15432")
end
Expand Down

0 comments on commit d93a6fa

Please sign in to comment.