Sha256: 2c78535cef663b862ab7fc3b91a3b4e98021555f4fbe7eedb9ce0408320d5365
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
module BinInstall module Postgres def self.install puts 'Installing PostgreSQL...'.white Brew.install_or_upgrade('postgresql') end def self.install! puts 'Installing PostgreSQL...'.white Brew.install_or_upgrade!('postgresql') end def self.create_superuser(username = 'postgres') system("createuser --superuser #{username}") end def self.create_superuser!(username = 'postgres') BinInstall.system!("createuser --superuser #{username}") end def self.create_user(username = 'postgres') system("createuser #{username}") end def self.create_user!(username = 'postgres') BinInstall.system!("createuser #{username}") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bin_install-0.0.6 | lib/bin_install/postgres.rb |
bin_install-0.0.5 | lib/bin_install/postgres.rb |
bin_install-0.0.4 | lib/bin_install/postgres.rb |