File Coverage

blib/lib/Scripting.pm
Criterion Covered Total %
statement 4 6 66.6
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 6 8 75.0


line stmt bran cond sub pod time code
1             # $Source: /Users/clajac/cvsroot//Scripting/Scripting.pm,v $
2             # $Author: clajac $
3             # $Date: 2003/07/21 10:10:05 $
4             # $Revision: 1.11 $
5              
6             package Scripting;
7              
8             require 5.005_62;
9              
10 1     1   2050 use Scripting::Loader;
  1         4  
  1         36  
11 1     1   641 use Scripting::Security;
  0            
  0            
12              
13             use strict;
14             use warnings;
15              
16             require Exporter;
17              
18             our @ISA = qw(Exporter);
19              
20             # Items to export into callers namespace by default. Note: do not export
21             # names by default without a very good reason. Use EXPORT_OK instead.
22             # Do not simply export all your public functions/methods/constants.
23              
24             # This allows declaration use Scripting ':all';
25             # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
26             # will save memory.
27             our %EXPORT_TAGS = ( 'all' => [ qw(
28            
29             ) ] );
30              
31             our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
32              
33             our @EXPORT = qw(
34            
35             );
36             our $VERSION = "0.99";
37              
38             sub dump_targets {
39             Scripting::Expose->dump_targets;
40             }
41              
42             sub init {
43             my $pkg = shift;
44             my %args = @_;
45              
46             die "Missing argument 'with'\n" unless(exists $args{with});
47              
48             if(exists $args{signfile}) {
49             Scripting::Security->open($args{signfile});
50             }
51              
52             Scripting::Loader->allow($args{allow});
53             Scripting::Loader->load($args{with});
54             }
55              
56             sub invoke {
57             shift if $_[0] eq 'Scripting';
58             Scripting::Event->invoke(@_);
59             }
60              
61             # Preloaded methods go here.
62              
63             1;
64             __END__