Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reverted back to Config::General.

  • Loading branch information...
commit 9279bb87e1c7f49fc71987b8a5ea58000b6616e8 1 parent b75ef36
@shlomif shlomif authored
View
8 cpanhq.conf
@@ -0,0 +1,8 @@
+<Controller::Distribution>
+ graph_path __HOME__/root/dist/graph/
+</Controller::Distribution>
+name CPANHQ
+<Model::DB>
+ connect_info dbi:SQLite:dbname=__HOME__/cpanhq.db
+ connect_info undef
+</Model::DB>
View
0  cpanhq.yml → cpanhq.yml.old
File renamed without changes
View
13 tmp/config-general-to-yaml.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Config::General;
+use YAML::XS qw(DumpFile);
+
+my $conf = Config::General->new("cpanhq.conf");
+
+my %config = $conf->getall();
+
+DumpFile("cpanhq.yml", \%config);
View
14 tmp/yaml-to-config-general.pl
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Config::General;
+use YAML::XS qw(LoadFile);
+
+my $config = LoadFile("cpanhq.yml");
+
+my $conf_g = Config::General->new("cpanhq.conf");
+
+$conf_g->save_file("cpanhq.conf", $config);
+
Please sign in to comment.
Something went wrong with that request. Please try again.