Skip to content

Commit

Permalink
use Config::Station for config loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Sep 26, 2015
1 parent b8a3be0 commit af0f807
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 129 deletions.
1 change: 1 addition & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
requires 'IO::All';
requires 'Cpanel::JSON::XS';
requires 'Config::Station';
requires 'namespace::clean';
requires 'Web::Simple';
requires 'Text::Xslate';
Expand Down
5 changes: 2 additions & 3 deletions lib/WWW/RetroPie/Game/Picker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ use autodie;

use IO::All;
use Text::Xslate;

use WWW::RetroPie::Game::Picker::ConfigLoader;
use Config::Station;

sub to_app { shift->to_psgi_app(@_) }

has _config => (
is => 'ro',
default => sub {
WWW::RetroPie::Game::Picker::ConfigLoader->new(
Config::Station->new(
env_key => 'RPGP',
config_class => 'WWW::RetroPie::Game::Picker::Config',
)->load
Expand Down
126 changes: 0 additions & 126 deletions lib/WWW/RetroPie/Game/Picker/ConfigLoader.pm

This file was deleted.

0 comments on commit af0f807

Please sign in to comment.