class Shoestring::Postgres
Attributes
postgres_interactive[R]
Public Class Methods
new(postgres_interactive = 'psql')
click to toggle source
# File lib/shoestring/postgres.rb, line 5 def initialize(postgres_interactive = 'psql') @postgres_interactive = postgres_interactive end
Public Instance Methods
check()
click to toggle source
# File lib/shoestring/postgres.rb, line 9 def check Shoestring::Generic.check('Postgres', install_help) do if system("which #{postgres_interactive} >/dev/null") true else puts "Postgres interactive command (#{postgres_interactive}) not found." false end end end
Private Instance Methods
install_help()
click to toggle source
# File lib/shoestring/postgres.rb, line 22 def install_help "You need to set up postgres.\nFor development it's recommended to use Postgres.app http://postgresapp.com/" end