Skip to content
Snippets Groups Projects
Commit 35fc8511 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

rename WebRequest class as App

parent 356f9ba7
Branches
Tags
No related merge requests found
...@@ -7,16 +7,16 @@ use lib qw(@modulesdir@); ...@@ -7,16 +7,16 @@ use lib qw(@modulesdir@);
use Config::Tiny; use Config::Tiny;
use AccountManager::WebRequest; use AccountManager::App;
my $configuration_file = my $configuration_file =
$ENV{ACCOUNTMANAGER_CONFIG} || '@sysconfdir@/manager.conf'; $ENV{ACCOUNTMANAGER_CONFIG} || '@sysconfdir@/manager.conf';
my $configuration = Config::Tiny->read($configuration_file); my $configuration = Config::Tiny->read($configuration_file);
my $request = AccountManager::WebRequest->new( my $app = AccountManager::App->new(
configuration => $configuration configuration => $configuration
); );
$request->run(); $app->run();
__END__ __END__
......
package AccountManager::WebRequest; package AccountManager::App;
use strict; use strict;
use warnings; use warnings;
...@@ -40,7 +40,6 @@ my %actions = ( ...@@ -40,7 +40,6 @@ my %actions = (
download_accounts => 'req_download_accounts', download_accounts => 'req_download_accounts',
); );
## New web request
sub new { sub new {
my ($pkg, %args) = @_; my ($pkg, %args) = @_;
......
...@@ -11,6 +11,6 @@ nobase_modules_DATA = \ ...@@ -11,6 +11,6 @@ nobase_modules_DATA = \
AccountManager/Account.pm \ AccountManager/Account.pm \
AccountManager/Account/Manager.pm \ AccountManager/Account/Manager.pm \
AccountManager/Tools.pm \ AccountManager/Tools.pm \
AccountManager/WebRequest.pm AccountManager/App.pm
EXTRA_DIST = $(nobase_modules_DATA) EXTRA_DIST = $(nobase_modules_DATA)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment