class Chid::Commands::Installs::Postgres
Public Instance Methods
run()
click to toggle source
# File lib/chid/commands/installs/postgres.rb, line 24 def run puts "\nInstalling the Postgres..." ::ChidConfig.on_linux do system('sudo apt update') system('sudo apt install postgresql postgresql-contrib') system('sudo apt-get install libpq-dev') end ::ChidConfig.on_osx do system('brew update') system('brew install postgres') end puts "\nPostgres installed successfully" end