line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
608
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use HH::Unispool::Config; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
21
|
|
4
|
1
|
|
|
1
|
|
5
|
use HH::Unispool::Config::OS; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
22
|
|
5
|
1
|
|
|
1
|
|
7
|
use HH::Unispool::Config::Scope; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
6
|
1
|
|
|
1
|
|
6
|
use HH::Unispool::Config::Entry::System; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
7
|
1
|
|
|
1
|
|
6
|
use HH::Unispool::Config::Entry::RemoteSystem::6; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
182
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Create a config from scratch with a _Local_ scope |
10
|
|
|
|
|
|
|
my $conf = HH::Unispool::Config->new( { |
11
|
|
|
|
|
|
|
scope => HH::Unispool::Config::Scope->new ( { |
12
|
|
|
|
|
|
|
scope => [ qw( _Local_) ], |
13
|
|
|
|
|
|
|
} ), |
14
|
|
|
|
|
|
|
} ); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# Create the _Local_ system and add it to the configuration |
17
|
|
|
|
|
|
|
my $sysn = HH::Unispool::Config::Entry::System->new( { |
18
|
|
|
|
|
|
|
name => '_Local_', |
19
|
|
|
|
|
|
|
local_system_name => 'foo', |
20
|
|
|
|
|
|
|
network_name => 'foo.bar.org', |
21
|
|
|
|
|
|
|
os => HH::Unispool::Config::OS->new( { |
22
|
|
|
|
|
|
|
os => 'Solaris', |
23
|
|
|
|
|
|
|
} ), |
24
|
|
|
|
|
|
|
} ); |
25
|
|
|
|
|
|
|
$conf->add_system($sysn); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# Add a type 6 remote system to _Local_ |
28
|
|
|
|
|
|
|
my $dev = HH::Unispool::Config::Entry::RemoteSystem::6->new( { |
29
|
|
|
|
|
|
|
name => 'rsys6', |
30
|
|
|
|
|
|
|
remote_node_name => 'barney.bedrock.org', |
31
|
|
|
|
|
|
|
os => HH::Unispool::Config::OS->new( { |
32
|
|
|
|
|
|
|
os => 'Solaris', |
33
|
|
|
|
|
|
|
} ), |
34
|
|
|
|
|
|
|
} ); |
35
|
|
|
|
|
|
|
$sysn->add_remote_system($dev); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# Write the configuration |
38
|
|
|
|
|
|
|
$conf->write('t/config.sample.r6.out'); |
39
|
|
|
|
|
|
|
1; |