forked from Broadcom/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtcserver.rb
More file actions
44 lines (36 loc) · 1.53 KB
/
tcserver.rb
File metadata and controls
44 lines (36 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'formula'
class Tcserver < Formula
homepage 'http://tcserver.docs.pivotal.io/index.html'
url 'https://s3.amazonaws.com/public.pivotal.com/releases/tcserver/4.0.7.RELEASE/tcserver-4.0.7.RELEASE-developer.tar.gz'
sha256 '67f408697666e9f7deab42855dc7f31fbfdfcdb2e640a26c64085d17a55c5ab7'
version '4.0.7'
def install
rm_rf Dir['**/*.bat']
distDir = "developer-#{version}.RELEASE"
%w(README.txt licenses/Pivotal_EULA.txt).each do |readme|
prefix.install ["#{distDir}/#{readme}"]
end
libexec.install Dir['*']
bin.install_symlink Dir["#{libexec}/#{distDir}/tcserver"]
tcsInstancesDir = var.join('tcserver').join('instances')
tcsInstancesDir.mkpath
IO.write("#{libexec}/#{distDir}/conf/tcserver.properties",
"instances.directory=#{tcsInstancesDir}\n", mode: 'a')
end
def caveats; <<-EOS
By installing, you agree to comply with the license at https://network.pivotal.io/pivotal_software_eula.
If you disagree with these terms, please uninstall by typing "brew uninstall tcserver" in your terminal window.
Usage:
To create a new tc Server instance:
> tcserver create myinstance
To control tc Server instance:
> tcserver start|stop|restart|status myinstance
Documentation:
http://tcserver.docs.pivotal.io/
Open Source License:
https://network.pivotal.io/open-source
For inquiries about commercial licensing, support, training, and consulting, please contact us at:
mailto:tcserver@pivotal.io
EOS
end
end