Sha256: 79060c578f7ee279c1ff305e5c2d33c5c27ecd5e9ebb9e6bb9ad8349641d14fb

Contents?: true

Size: 846 Bytes

Versions: 8

Compression:

Stored size: 846 Bytes

Contents

#!/bin/bash

# install postgres
postgres=`brew list | grep postgres | bundle list pg`
if [[ ! $postgres ]]; then
  echo ''
  echo '##### Installing Postgres via Postgres.app ...'
  echo '##### To Downloads folder'
  cd ~/Downloads
  echo '##### curl -O https://github.com/PostgresApp/PostgresApp/releases/download/9.3.5.2/Postgres-9.3.5.2.zip'
  curl -O https://github.com/PostgresApp/PostgresApp/releases/download/9.3.5.2/Postgres-9.3.5.2.zip
  echo '##### Open that zip'
  open Postgres-9.3.5.2.zip
  echo '##### Moving to Applications dir'
  mv ~/Downloads/Postgres.app /Applications
  echo '##### Starting Postgres'
  open Postgres.app
else
  echo 'nothing to install'
fi

# install postgres gem
pg_gem=`gem list pg`
if [[ ! $pg_gem ]]; then
  echo ''
  echo '##### Installing PG Gem ...'
  gem install pg
else
  echo 'nothing to install'
fi

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ferry-1.3.2 script/postgresql_install.sh
ferry-1.3.1 script/postgresql_install.sh
ferry-1.3.0 script/postgresql_install.sh
ferry-1.2.1 script/postgresql_install.sh
ferry-1.2.0 script/postgresql_install.sh
ferry-1.1.1 script/postgresql_install.sh
ferry-1.1.0 script/postgresql_install.sh
ferry-1.0.1 script/postgresql_install.sh