summaryrefslogtreecommitdiff
path: root/usr/src/pinyadmin/bin/pinyconfig
blob: ec8e80a878990c8f4ef222f02caf28f4238443b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;

use Piny;

my ( $reponame, $attr, $value ) = @ARGV;

$attr =~ s/\./_/g;

my $repo = Piny::Repo->new( $reponame );

if ( defined $value ) {
  $repo->config->$attr( $value );
};

print "$attr = " . $repo->config->$attr . "\n";