Remote/Windows.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Remote/Windiff.pm ↑ Summary Remote/Winexe.pm »
1 #
2 # $Id$
3 #
4 # remote::windows Brik
5 #
6 package Metabrik::Remote::Windows;
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use base qw(Metabrik::Remote::Winexe);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub brik_properties {
13 return {
14 revision => '$Revision$',
15 tags => [ qw(unstable) ],
16 author => 'GomoR <GomoR[at]metabrik.org>',
17 license => 'http://opensource.org/licenses/BSD-3-Clause',
18 attributes => {
19 datadir => [ qw(datadir) ],
20 host => [ qw(host) ],
21 user => [ qw(username) ],
22 password => [ qw(password) ],
23 registry => [ qw(key) ],
24 },
25 attributes_default => {
26 registry => 'HKLM',
27 },
28 commands => {
29 install => [ ], # Inherited
30 dump_registry => [ qw(key|OPTIONAL output|OPTIONAL) ],
31 },
32 };
33 }
34  
35 sub dump_registry {
36 my $self = shift;
37 my ($registry, $output) = @_;
38  
39 $registry ||= $self->registry;
40 $output ||= 'C:\\windows\\temp\\'.$registry.'.reg';
41  
42 return $self->execute("\"reg export $registry $output\"");
43 }
44  
45 1;
46  
47 __END__
« Remote/Windiff.pm ↑ Summary Remote/Winexe.pm »