line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
638
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use HH::Unispool::Config; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
4
|
1
|
|
|
1
|
|
5
|
use HH::Unispool::Config::OS; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
5
|
1
|
|
|
1
|
|
6
|
use HH::Unispool::Config::Scope; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
6
|
1
|
|
|
1
|
|
6
|
use HH::Unispool::Config::ExecPri; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
7
|
1
|
|
|
1
|
|
7
|
use HH::Unispool::Config::Entry::System; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
8
|
1
|
|
|
1
|
|
5
|
use HH::Unispool::Config::Entry::Device::6; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
190
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Create a config from scratch with a _Local_ scope |
11
|
|
|
|
|
|
|
my $conf = HH::Unispool::Config->new( { |
12
|
|
|
|
|
|
|
scope => HH::Unispool::Config::Scope->new ( { |
13
|
|
|
|
|
|
|
scope => [ qw( _Local_) ], |
14
|
|
|
|
|
|
|
} ), |
15
|
|
|
|
|
|
|
} ); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# Create the _Local_ system and add it to the configuration |
18
|
|
|
|
|
|
|
my $sysn = HH::Unispool::Config::Entry::System->new( { |
19
|
|
|
|
|
|
|
name => '_Local_', |
20
|
|
|
|
|
|
|
local_system_name => 'foo', |
21
|
|
|
|
|
|
|
network_name => 'foo.bar.org', |
22
|
|
|
|
|
|
|
os => HH::Unispool::Config::OS->new( { |
23
|
|
|
|
|
|
|
os => 'Solaris', |
24
|
|
|
|
|
|
|
} ), |
25
|
|
|
|
|
|
|
execution_priority => HH::Unispool::Config::ExecPri->new( { |
26
|
|
|
|
|
|
|
execution_priority => 'BS', |
27
|
|
|
|
|
|
|
} ), |
28
|
|
|
|
|
|
|
} ); |
29
|
|
|
|
|
|
|
$conf->add_system($sysn); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# Add a type 6 device to _Local_ |
32
|
|
|
|
|
|
|
my $dev = HH::Unispool::Config::Entry::Device::6->new( { |
33
|
|
|
|
|
|
|
name => 'lp', |
34
|
|
|
|
|
|
|
filter_name => 'cat', |
35
|
|
|
|
|
|
|
remote_node_name => 'lp.foo.bar.org', |
36
|
|
|
|
|
|
|
description => 'lp', |
37
|
|
|
|
|
|
|
execution_priority => HH::Unispool::Config::ExecPri->new( { |
38
|
|
|
|
|
|
|
execution_priority => 'ES', |
39
|
|
|
|
|
|
|
} ), |
40
|
|
|
|
|
|
|
} ); |
41
|
|
|
|
|
|
|
$sysn->add_device($dev); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# Write the configuration |
44
|
|
|
|
|
|
|
$conf->write('t/config.sample.ex.out'); |
45
|
|
|
|
|
|
|
1; |