-
Notifications
You must be signed in to change notification settings - Fork 49
/
springxd.rb
51 lines (40 loc) · 1.39 KB
/
springxd.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
49
50
51
require 'formula'
class Springxd < Formula
homepage 'http://projects.spring.io/spring-xd/'
url 'http://repo.spring.io/libs-release/org/springframework/xd/spring-xd/1.3.1.RELEASE/spring-xd-1.3.1.RELEASE-dist.zip' , :using => :curl
sha256 '0a2007e9802ea1cb0110f03ee236e502f3e97193efd6d3a0046b721c7edf500b'
version "1.3.1.RELEASE"
depends_on 'redis' => :optional
depends_on 'rabbitmq' => :optional
depends_on 'zookeeper' => :optional
def install
# Remove Windows scripts
rm_rf Dir['**/*.bat']
# Install files
libexec.install Dir['*']
bin.install_symlink Dir["#{libexec}/shell/bin/*"]
bin.install_symlink Dir["#{libexec}/xd/bin/*"]
bin.install_symlink Dir["#{libexec}/gemfire/bin/*"]
bin.install_symlink Dir["#{libexec}/hsqldb/bin/*"]
end
def caveats; <<~EOS
Usage:
To start XD single node (runs in foreground):
xd-singlenode
To start XD admin and container separately (all run in foreground):
brew update && brew install redis
brew install zookeeper
redis-server
hsqldb-server
zkServer start
xd-admin
xd-container
Start XD Shell:
xd-shell
Create your first stream by typing following in xd shell:
xd:> stream create --definition "time | log" --name ticktock
Documentation:
http://docs.spring.io/spring-xd/docs/1.3.1.RELEASE/reference/html/
EOS
end
end