Alzabo-GUI-Mason
view release on metacpan or search on metacpan
inc/Alzabo/GUI/Mason/Build.pm view on Meta::CPAN
require Alzabo::GUI::Mason::Config;
my $base = Alzabo::GUI::Mason::Config::mason_web_dir();
foreach (@_)
{
my $dir = File::Spec->catdir( $base, $_ );
unless ( -d $dir )
{
mkpath( $dir, 1, 0755 )
or die "Can't make $dir dir: $!\n";
warn "chown $dir to $self->{Alzabo}{user}/$self->{Alzabo}{group}\n";
chown $self->{Alzabo}{uid}, $self->{Alzabo}{gid}, $dir
or die "Can't chown $dir to $self->{Alzabo}{user}/$self->{Alzabo}{group}: $!\n?";
}
}
}
sub _copy_dir
{
my ( $self, $f, $t ) = @_;
$self->_get_uid_gid;
inc/Alzabo/GUI/Mason/Build.pm view on Meta::CPAN
my $target =
$self->copy_if_modified( from => File::Spec->catfile( $from, $from_f ),
to => $to_f,
);
# was up to date
next unless $target;
$count++;
chown $self->{Alzabo}{uid}, $self->{Alzabo}{gid}, $target
or die "Can't chown $target to $self->{Alzabo}{user}/$self->{Alzabo}{group}: $!\n?";
}
closedir $dh;
return $count;
}
sub _get_uid_gid
{
my $self = shift;
( run in 2.220 seconds using v1.01-cache-2.11-cpan-71847e10f99 )