/usr/share/perl5/Padre/Command.pm is in padre 1.00+dfsg-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | package Padre::Command;
# Padre launches commands on the local operating system in a wide
# variety of different ways, and via different execution channels.
# This class provides a generic abstraction of a command, so that
# commands can be built up in a similar way across all channels, and
# the same command can be run in a variety of different ways if needed.
use 5.008005;
use strict;
use warnings;
our $VERSION = '1.00';
use Class::XSAccessor {
getters => {
# The fully resolved path to the program to execute
program => 'program',
# Parameters to the command as an ARRAY reference
parameters => 'parameters',
# Where to set the directory when starting the command
directory => 'directory',
# Differences to the environment while running the command
environment => 'environment',
# Should the command be run in a visible shell
visible => 'visible',
},
};
######################################################################
# Constructor and Accessors
# NOTE: Currently, this does no validation
sub new {
my $class = shift;
my $self = bless {@_}, $class;
# Defaults
unless ( defined $self->{parameters} ) {
$self->{parameters} = [];
}
unless ( defined $self->{directory} ) {
require File::HomeDir;
$self->{directory} = File::HomeDir->my_home;
}
unless ( defined $self->{environment} ) {
$self->{environment} = {};
}
unless ( defined $self->{visible} ) {
$self->{visible} = 0;
}
return $self;
}
1;
# Copyright 2008-2013 The Padre development team as listed in Padre.pm.
# LICENSE
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl 5 itself.
|