2 |
## $Id$ |
## $Id$ |
3 |
## ---------------------------------------------------------------------- |
## ---------------------------------------------------------------------- |
4 |
## $Log$ |
## $Log$ |
5 |
|
## Revision 1.4 2003/02/22 16:51:21 joko |
6 |
|
## + enhanced run_executable |
7 |
|
## modified logging output |
8 |
|
## |
9 |
|
## Revision 1.3 2003/02/21 01:46:17 joko |
10 |
|
## renamed core function |
11 |
|
## |
12 |
## Revision 1.2 2003/02/20 19:46:33 joko |
## Revision 1.2 2003/02/20 19:46:33 joko |
13 |
## renamed and revamped some of modules |
## renamed and revamped some of modules |
14 |
## renamed methods |
## renamed methods |
45 |
my $self = shift; |
my $self = shift; |
46 |
my $targetname = shift; |
my $targetname = shift; |
47 |
|
|
48 |
$self->log("Performing Target '$targetname'.", 'notice'); |
my $header = ("- " x 12) . " " . $targetname . " " . ("- " x 6); |
49 |
|
|
50 |
|
#$self->log("- " x 35, 'notice'); |
51 |
|
#$self->log("Performing Target '$targetname'.", 'notice'); |
52 |
|
|
53 |
|
$self->log($header, 'notice'); |
54 |
|
|
55 |
#exit; |
#exit; |
56 |
|
|
111 |
my $command = shift; |
my $command = shift; |
112 |
|
|
113 |
if (!$command) { |
if (!$command) { |
114 |
$self->log("Command was empty!", 'warning'); |
$self->log("Command was empty!", 'debug'); |
115 |
return; |
return; |
116 |
} |
} |
117 |
|
|
167 |
#print "DATA NEE! - MERGE!", "\n"; |
#print "DATA NEE! - MERGE!", "\n"; |
168 |
#print Dumper($data_new); |
#print Dumper($data_new); |
169 |
#exit; |
#exit; |
170 |
#hash2object($self, $data_new); |
#merge_to($self, $data_new); |
171 |
$self->set_property( { name => $name, value => $data_new } ); |
$self->set_property( { name => $name, value => $data_new } ); |
172 |
|
|
173 |
} else { |
} else { |
299 |
my @buf; |
my @buf; |
300 |
foreach (keys %$opts) { |
foreach (keys %$opts) { |
301 |
my $value = $opts->{$_}; |
my $value = $opts->{$_}; |
302 |
|
if (m/^_/) { |
303 |
|
if ($_ eq '_switches') { |
304 |
|
my @switches = split(/,\s|,/, $value); |
305 |
|
foreach my $switch (@switches) { |
306 |
|
push @buf, '--' . $switch; |
307 |
|
} |
308 |
|
} |
309 |
|
next; |
310 |
|
} |
311 |
|
|
312 |
if ($value =~ /\s/) { |
if ($value =~ /\s/) { |
313 |
$value = "\"$value\""; |
$value = "\"$value\""; |
314 |
} |
} |