diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | README | 6 | ||||
-rwxr-xr-x | mgagit | 16 |
3 files changed, 21 insertions, 2 deletions
@@ -1,5 +1,6 @@ - soft_repo.gl: Put maintainer nick in square brackets - allow non-ldap group definitions +- add the showconf command, to show repos configuration in yaml Version 0.10 @@ -13,8 +13,10 @@ And generate the corresponding gitolite configuration and keys directory. Available commands ------------------ -- glconf : Print gitolite configuration -- glrun : Update gitolite configuration +- glconf : Print gitolite configuration +- glrun : Update gitolite configuration +- showconf : Display the repos configuration in YAML. This is mainly + useful for debugging. Configuration @@ -2,6 +2,7 @@ use strict; use MGA::Git; +use YAML; #use Data::Dump qw/dd/; my %actions = ( @@ -33,6 +34,15 @@ $0 usage [action] Show action usage END }, + showconf => { + run => \&showconf, + descr => 'Show YAML mgagit configuration', + usage => <<END, +$0 showconf + +Show YAML mgagit configuration +END + }, ); sub usage { @@ -79,6 +89,12 @@ sub glrun { MGA::Git::run_gitolite(\%r); } +sub showconf { + my %r; + MGA::Git::load_gitrepos(\%r); + print YAML::Dump(\%r); +} + if (@ARGV == 0 || !$actions{$ARGV[0]}) { usageexit(); } |