RT-Extension-Nginx
view release on metacpan or search on metacpan
lib/RT/Extension/Nginx.pm view on Meta::CPAN
foreach my $dir ( File::Spec->path ) {
my $file = File::Spec->catfile( $dir, $name );
return $file if -e $file && -x _;
}
return undef;
}
sub GetWebUser {
my $self = shift;
my $id = (stat $RT::MasonDataDir)[4];
return ($id, getpwuid $id);
}
sub GetWebGroup {
my $self = shift;
my $id = (stat $RT::MasonDataDir)[5];
return ($id, getgrgid $id);
}
sub GetSystemUser {
my $self = shift;
return ($>, getpwuid $>);
}
sub GenerateFile {
my $self = shift;
my $name = shift;
my $stash = shift;
require RT::Plugin;
my $from = RT::Plugin->new( name => 'RT::Extension::Nginx' )->Path('etc');
( run in 0.370 second using v1.01-cache-2.11-cpan-8d75d55dd25 )