Commit | Line | Data |
---|---|---|
4536f655 | 1 | # hello_server.stem |
2 | # | |
3 | [ | |
4 | class => 'Stem::Console', | |
5 | ], | |
6 | [ | |
7 | class => 'Stem::Hub', | |
8 | name => 'system_A', | |
9 | args => [], | |
10 | ], | |
11 | [ | |
12 | class => 'Stem::Portal', | |
13 | args => [ | |
14 | 'server' => 1, | |
15 | 'host' => 'localhost', | |
16 | ], | |
17 | ], | |
18 | [ | |
19 | class => 'Stem::Switch', | |
20 | name => 'sw', | |
21 | args => [ | |
22 | in_map => [ | |
23 | ||
24 | h => [ qw( h h3 ) ], | |
25 | ], | |
26 | out_map => [ | |
27 | ||
28 | h => 'hello', | |
29 | h3 => 'system_B:hello', | |
30 | ], | |
31 | ], | |
32 | ], | |
33 | [ | |
34 | class => 'Stem::Proc', | |
35 | name => 'hello', | |
36 | args => [ | |
37 | path => 'bin/hello.sh', | |
38 | proc_args => ['server'], | |
39 | cell_attr => [ | |
40 | 'data_addr' => 'console', | |
41 | ], | |
42 | ], | |
43 | ], |