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"
|
system "#{bin}/initdb", "#{var}/#{name}" unless File.exist? "#{var}/#{name}/PG_VERSION"
|
||||||
end
|
end
|
||||||
|
|
||||||
def caveats; <<~EOS
|
def caveats
|
||||||
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
|
<<~EOS
|
||||||
you may need to remove the previous version first. See:
|
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
|
||||||
https://github.com/Homebrew/legacy-homebrew/issues/2510
|
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:
|
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
|
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:
|
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
|
https://www.postgresql.org/docs/9.5/static/pgupgrade.html
|
||||||
|
|
||||||
You will need your previous PostgreSQL installation from brew to perform `pg_upgrade`.
|
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.
|
Do not run `brew cleanup postgresql@9.5` until you have performed the migration.
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
plist_options :manual => "pg_ctl -D #{HOMEBREW_PREFIX}/var/postgresql@9.5 start"
|
plist_options :manual => "pg_ctl -D #{HOMEBREW_PREFIX}/var/postgresql@9.5 start"
|
||||||
|
|
||||||
def plist; <<~EOS
|
def plist
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<<~EOS
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<plist version="1.0">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<dict>
|
<plist version="1.0">
|
||||||
<key>KeepAlive</key>
|
<dict>
|
||||||
<true/>
|
<key>KeepAlive</key>
|
||||||
<key>Label</key>
|
<true/>
|
||||||
<string>#{plist_name}</string>
|
<key>Label</key>
|
||||||
<key>ProgramArguments</key>
|
<string>#{plist_name}</string>
|
||||||
<array>
|
<key>ProgramArguments</key>
|
||||||
<string>#{opt_bin}/postgres</string>
|
<array>
|
||||||
<string>-D</string>
|
<string>#{opt_bin}/postgres</string>
|
||||||
<string>#{var}/#{name}</string>
|
<string>-D</string>
|
||||||
</array>
|
<string>#{var}/#{name}</string>
|
||||||
<key>RunAtLoad</key>
|
</array>
|
||||||
<true/>
|
<key>RunAtLoad</key>
|
||||||
<key>WorkingDirectory</key>
|
<true/>
|
||||||
<string>#{HOMEBREW_PREFIX}</string>
|
<key>WorkingDirectory</key>
|
||||||
<key>StandardErrorPath</key>
|
<string>#{HOMEBREW_PREFIX}</string>
|
||||||
<string>#{var}/log/#{name}.log</string>
|
<key>StandardErrorPath</key>
|
||||||
</dict>
|
<string>#{var}/log/#{name}.log</string>
|
||||||
</plist>
|
</dict>
|
||||||
EOS
|
</plist>
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in New Issue