Skip to content
Browse files

Configurable config file

  • Loading branch information...
1 parent 187d1fd commit 36d591302998f9927ec1f4fdc722430280adc711 @mfontani mfontani committed Dec 4, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Dist/Zilla/App/Command/provision.pm
View
3 lib/Dist/Zilla/App/Command/provision.pm
@@ -16,6 +16,7 @@ sub abstract { 'provision a new Oyster VM' }
sub opt_spec {
[ 'name=s' => 'the name of the VM to create' ],
+ [ 'config=s' => 'the name of the config file to use, default ./oyster.conf' ],
}
sub execute {
@@ -25,7 +26,7 @@ sub execute {
my $name = $opt->name
or die "No name provided!";
- my @config_files = ( './oyster.conf' ); # TODO make configurable
+ my @config_files = ($opt->name or './oyster.conf');
my $cfg = Config::Any->load_files({ files => \@config_files, use_ext => 0 });
($cfg) = values %{ $cfg->[0] }; # FIX with ::JFDI or similar

0 comments on commit 36d5913

Please sign in to comment.
Something went wrong with that request. Please try again.