App-KGB
view release on metacpan or search on metacpan
script/kgb-add-project view on Meta::CPAN
]
);
foreach ( @{ $yaml->{channels} } ) {
Bless($_)->keys(
[ sort { $a ne 'name' } keys %$_ ]
);
}
my $outfh = \*STDOUT;
my ( $uid, $gid, $mode );
if ($save) {
$uid = ( stat($file) )[4];
$gid = ( stat($file) )[5];
$mode = ( stat($file) )[2] & 07777;
if ( $dir and -d $dir ) {
$file = File::Spec->catdir($dir, "$prj.conf");
}
umask(~$mode & 0777);
open( $outfh, '>', $file );
}
print $outfh YAML::Dump($yaml);
if ($save) {
chown $uid, $gid, $file;
}
__END__
=head1 NAME
kgb-add-project - helper script for adding new projects to kgb-bot configuration file
=head1 SYNOPSIS
( run in 0.944 second using v1.01-cache-2.11-cpan-ceb78f64989 )