forked from pivotal-legacy/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtcserver.rb
48 lines (37 loc) · 1.86 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
45
46
47
48
require 'formula'
class Tcserver < Formula
homepage 'http://www.gopivotal.com/?q=pivotal-products/pivotal-application-cloud-fabric/pivotal-tc-server'
url 'http://public.pivotal.com.s3.amazonaws.com/releases/tcserver/3.0.0.RELEASE/tcserver-3.0.0.RELEASE-developer.tar.gz'
sha1 'ff08f92fb7d257710906fffa258febeb1a414abb'
version "3.0.0"
# logs, lib and temp folder need to exist for base template to work
skip_clean 'libexec/templates/base/logs'
skip_clean 'libexec/templates/base/lib'
skip_clean 'libexec/templates/base/temp'
def install
# Remove Windows scripts
rm_rf Dir['**/*.bat']
# Install files
prefix.install %w{ README.txt licenses/Pivotal_EULA.txt licenses/pivotal-tc-server-developer-open-source-licenses-3.0.0.RELEASE.txt}
libexec.install Dir['*']
bin.install_symlink Dir["#{libexec}/*.sh"]
# logs, lib and temp folder need to exist for base template to work
(libexec/'templates/base/logs').mkpath
(libexec/'templates/base/lib').mkpath
(libexec/'templates/base/temp').mkpath
end
def caveats; <<-EOS.undent
By installing, you agree to comply with the license at http://www.pivotal.io/tc-dev-edition-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 (in current directory):
tcruntime-instance.sh create myinstance
To create a new tc Server instance with Spring Insight monitoring:
tcruntime-instance.sh create -t insight myinstance
To control tc Server instance (in current directory):
tcruntime-ctl.sh myinstance start
Documentation:
http://docs.pivotal.io/tcserver
For inquiries about commercial licensing, support, training, and consulting, please contact us at [email protected]
EOS
end
end