Commit ecedc6a4 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add a dumpconfig command, mostly useful to debug Docker setups

parent c2333489
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
package Travelynx::Command::dumpconfig;
use Mojo::Base 'Mojolicious::Command';

use Data::Dumper;

has description => 'Dump current configuration';

has usage => sub { shift->extract_usage };

sub run {
	my ($self) = @_;

	print Dumper( $self->app->config );
}

1;

__END__

=head1 SYNOPSIS

  Usage: index.pl dumpconfig

  Dumps the current configuration (travelynx.conf) to stdout.