forked from pivotal-legacy/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtcserver.rb
44 lines (36 loc) · 1.53 KB
/
tcserver.rb
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.1.3.RELEASE/tcserver-4.1.3.RELEASE-developer.tar.gz'
sha256 '8abcf9291e1faa7bf002aa61dc77d35052626be3c5baa02484ac1fbd7bcc824e'
version '4.1.3'
def install
rm_rf Dir['**/*.bat']
distDir = "developer-#{version}.RELEASE"
%w(README.txt licenses/VMware_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/legal_documents/vmware_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:
https://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:[email protected]
EOS
end
end