postgresql@9.5: fix RuboCop Style/TrailingBodyOnMethodDefinition.
parent
73be0312fa
commit
e114421c0c
|
@ -95,48 +95,50 @@ class PostgresqlAT95 < Formula
|
|||
system "#{bin}/initdb", "#{var}/#{name}" unless File.exist? "#{var}/#{name}/PG_VERSION"
|
||||
end
|
||||
|
||||
def caveats; <<~EOS
|
||||
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
|
||||
you may need to remove the previous version first. See:
|
||||
https://github.com/Homebrew/legacy-homebrew/issues/2510
|
||||
def caveats
|
||||
<<~EOS
|
||||
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
|
||||
you may need to remove the previous version first. See:
|
||||
https://github.com/Homebrew/legacy-homebrew/issues/2510
|
||||
|
||||
To migrate existing data from a previous major version (pre-9.0) of PostgreSQL, see:
|
||||
https://www.postgresql.org/docs/9.5/static/upgrading.html
|
||||
To migrate existing data from a previous major version (pre-9.0) of PostgreSQL, see:
|
||||
https://www.postgresql.org/docs/9.5/static/upgrading.html
|
||||
|
||||
To migrate existing data from a previous minor version (9.0-9.4) of PostgreSQL, see:
|
||||
https://www.postgresql.org/docs/9.5/static/pgupgrade.html
|
||||
To migrate existing data from a previous minor version (9.0-9.4) of PostgreSQL, see:
|
||||
https://www.postgresql.org/docs/9.5/static/pgupgrade.html
|
||||
|
||||
You will need your previous PostgreSQL installation from brew to perform `pg_upgrade`.
|
||||
Do not run `brew cleanup postgresql@9.5` until you have performed the migration.
|
||||
EOS
|
||||
You will need your previous PostgreSQL installation from brew to perform `pg_upgrade`.
|
||||
Do not run `brew cleanup postgresql@9.5` until you have performed the migration.
|
||||
EOS
|
||||
end
|
||||
|
||||
plist_options :manual => "pg_ctl -D #{HOMEBREW_PREFIX}/var/postgresql@9.5 start"
|
||||
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<key>Label</key>
|
||||
<string>#{plist_name}</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_bin}/postgres</string>
|
||||
<string>-D</string>
|
||||
<string>#{var}/#{name}</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>WorkingDirectory</key>
|
||||
<string>#{HOMEBREW_PREFIX}</string>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>#{var}/log/#{name}.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
def plist
|
||||
<<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<key>Label</key>
|
||||
<string>#{plist_name}</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_bin}/postgres</string>
|
||||
<string>-D</string>
|
||||
<string>#{var}/#{name}</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>WorkingDirectory</key>
|
||||
<string>#{HOMEBREW_PREFIX}</string>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>#{var}/log/#{name}.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in New Issue