Class: Islo::Postgres::Server

Inherits:
Command
  • Object
show all
Defined in:
lib/islo/commands/postgres.rb

Overview

PostgreSQL server

Instance Attribute Summary

Attributes inherited from Command

#command, #title, #wd

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#exec, #initialize, #title?

Constructor Details

This class inherits a constructor from Islo::Command

Class Method Details

.nameObject



21
22
23
# File 'lib/islo/commands/postgres.rb', line 21

def self.name
  :postgres
end

Instance Method Details

#argsObject



25
26
27
28
29
30
# File 'lib/islo/commands/postgres.rb', line 25

def args
  %W(
    -D #{wd}/db/postgres
    -k #{wd}/tmp/sockets
  ) + ['-h', ''] + super
end