lib/bin_install/postgres.rb in bin_install-0.0.17 vs lib/bin_install/postgres.rb in bin_install-0.0.18
- old
+ new
@@ -9,21 +9,25 @@
puts 'Installing PostgreSQL...'.white
Brew::Package.install_or_upgrade!('postgresql')
end
def self.create_superuser(username = 'postgres')
+ puts 'Creating superuser postgres for postgresqlSQL...'.whtie
system("createuser --superuser #{username}")
end
def self.create_superuser!(username = 'postgres')
+ puts 'Creating superuser postgres for PostgreSQL...'.white
BinInstall.system!("createuser --superuser #{username}")
end
def self.create_user(username = 'postgres')
+ puts "Creating user #{username} for PostgreSQL".white
system("createuser #{username}")
end
def self.create_user!(username = 'postgres')
+ puts "Creating user #{username} for PostgreSQL".white
BinInstall.system!("createuser #{username}")
end
def self.installed?
Shell.executable_exists?('psql')