XAS-Service
view release on metacpan or search on metacpan
my $result;
my $dir = catfile('blib', 'etc');
my $files = $self->find_etc_files;
mkdir $dir unless (-e $dir);
while (my ($from, $to) = each %$files) {
$to = catfile('blib', $to);
$result = $self->copy_if_modified(from => $from, to => $to);
}
return $self;
}
sub process_sbin_files {
my $self = shift;
my $result;
my $dir = catfile('blib', 'sbin');
my $files = $self->find_sbin_files;
mkdir $dir unless (-e $dir);
while (my ($from, $to) = each %$files) {
$to = catfile('blib', $to);
$result = $self->copy_if_modified(from => $from, to => $to) or next;
$self->fix_shebang_line($result) unless $self->is_vmsish;
$self->make_executable($result);
}
return $self;
}
sub process_initd_files {
my $result;
my $dir = catfile('blib', 'init.d');
my $files = $self->find_initd_files;
mkdir $dir unless (-e $dir);
while (my ($from, $to) = each %$files) {
$to = catfile('blib', $to);
$self->make_executable($from);
$result = $self->copy_if_modified(from => $from, to => $to);
}
return $self;
}
sub process_sysconf_files {
my $self = shift;
my $result;
my $dir = catfile('blib', 'sysconfig');
my $files = $self->find_sysconf_files;
mkdir $dir unless (-e $dir);
while (my ($from, $to) = each %$files) {
$to = catfile('blib', $to);
$result = $self->copy_if_modified(from => $from, to => $to);
}
return $self;
}
sub process_profiled_files {
my $self = shift;
my $result;
my $dir = catfile('blib', 'profile.d');
my $files = $self->find_profiled_files;
mkdir $dir unless (-e $dir);
while (my ($from, $to) = each %$files) {
$to = catfile('blib', $to);
$self->make_executable($from);
$result = $self->copy_if_modified(from => $from, to => $to);
}
return $self;
}
sub process_logrotated_files {
my $self = shift;
my $result;
my $dir = catfile('blib', 'logrotate.d');
my $files = $self->find_logrotated_files;
mkdir $dir unless (-e $dir);
while (my ($from, $to) = each %$files) {
$to = catfile('blib', $to);
$result = $self->copy_if_modified(from => $from, to => $to);
}
return $self;
}
sub process_web_files {
my $self = shift;
my $result;
my $dir = catfile('blib', 'web');
my $files = $self->find_web_files;
mkdir $dir unless (-e $dir);
while (my ($from, $to) = each %$files) {
$to = catfile('blib', $to);
$result = $self->copy_if_modified(from => $from, to => $to);
}
return $self;
}
sub find_etc_files { shift->find_all_files_no_scm('etc'); }
sub find_web_files { shift->find_all_files_no_scm('web'); }
sub find_sbin_files { shift->find_all_files_no_scm('sbin'); }
( run in 2.061 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )