From 35fc8511784f0229ff9f7c07e37332162cd5b557 Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Mon, 26 Feb 2018 14:57:30 +0100
Subject: [PATCH] rename WebRequest class as App

---
 bin/account-manager.cgi.in                   | 6 +++---
 lib/AccountManager/{WebRequest.pm => App.pm} | 3 +--
 lib/Makefile.am                              | 2 +-
 3 files changed, 5 insertions(+), 6 deletions(-)
 rename lib/AccountManager/{WebRequest.pm => App.pm} (99%)

diff --git a/bin/account-manager.cgi.in b/bin/account-manager.cgi.in
index 9c6a00a..75c0d21 100755
--- a/bin/account-manager.cgi.in
+++ b/bin/account-manager.cgi.in
@@ -7,16 +7,16 @@ use lib qw(@modulesdir@);
 
 use Config::Tiny;
 
-use AccountManager::WebRequest;
+use AccountManager::App;
 
 my $configuration_file =
     $ENV{ACCOUNTMANAGER_CONFIG} || '@sysconfdir@/manager.conf';
 my $configuration = Config::Tiny->read($configuration_file);
 
-my $request = AccountManager::WebRequest->new(
+my $app = AccountManager::App->new(
     configuration => $configuration
 );
-$request->run();
+$app->run();
 
 __END__
 
diff --git a/lib/AccountManager/WebRequest.pm b/lib/AccountManager/App.pm
similarity index 99%
rename from lib/AccountManager/WebRequest.pm
rename to lib/AccountManager/App.pm
index e66f619..d402a5c 100644
--- a/lib/AccountManager/WebRequest.pm
+++ b/lib/AccountManager/App.pm
@@ -1,4 +1,4 @@
-package AccountManager::WebRequest;
+package AccountManager::App;
 
 use strict;
 use warnings;
@@ -40,7 +40,6 @@ my %actions = (
     download_accounts  => 'req_download_accounts',
 );
 
-## New web request
 sub new {
     my ($pkg, %args) = @_;
 
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 3ef9a03..c74dc66 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -11,6 +11,6 @@ nobase_modules_DATA = \
 	AccountManager/Account.pm \
 	AccountManager/Account/Manager.pm \
 	AccountManager/Tools.pm \
-	AccountManager/WebRequest.pm
+	AccountManager/App.pm
 
 EXTRA_DIST = $(nobase_modules_DATA)
-- 
GitLab