From f150e1f679526ed85b095812b3150137cc3dc4c0 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 9 Nov 2021 12:58:57 +0100 Subject: [PATCH] change lib structure --- FHEM/98_backupToStorage.pm | 18 +++++++++--------- controls_backupToStorage.txt | 3 +-- hooks/pre-commit | 2 +- lib/FHEM/{ => Services}/backupToStorage.pm | 4 ++-- 4 files changed, 13 insertions(+), 14 deletions(-) rename lib/FHEM/{ => Services}/backupToStorage.pm (99%) diff --git a/FHEM/98_backupToStorage.pm b/FHEM/98_backupToStorage.pm index e6ab8e2..9eb5235 100644 --- a/FHEM/98_backupToStorage.pm +++ b/FHEM/98_backupToStorage.pm @@ -36,21 +36,21 @@ use warnings; use utf8; use FHEM::Meta; -use FHEM::backupToStorage; +use FHEM::Services::backupToStorage; sub backupToStorage_Initialize { my $hash = shift; ## Da ich mit package arbeite müssen in die Initialize für die jeweiligen hash Fn Funktionen der Funktionsname # und davor mit :: getrennt der eigentliche package Name des Modules - $hash->{SetFn} = \&FHEM::backupToStorage::Set; - $hash->{DefFn} = \&FHEM::backupToStorage::Define; - $hash->{NotifyFn} = \&FHEM::backupToStorage::Notify; - $hash->{UndefFn} = \&FHEM::backupToStorage::Undef; - $hash->{AttrFn} = \&FHEM::backupToStorage::Attr; - $hash->{RenameFn} = \&FHEM::backupToStorage::Rename; - $hash->{DeleteFn} = \&FHEM::backupToStorage::Delete; - $hash->{ShutdownFn} = \&FHEM::backupToStorage::Shutdown; + $hash->{SetFn} = \&FHEM::Services::backupToStorage::Set; + $hash->{DefFn} = \&FHEM::Services::backupToStorage::Define; + $hash->{NotifyFn} = \&FHEM::Services::backupToStorage::Notify; + $hash->{UndefFn} = \&FHEM::Services::backupToStorage::Undef; + $hash->{AttrFn} = \&FHEM::Services::backupToStorage::Attr; + $hash->{RenameFn} = \&FHEM::Services::backupToStorage::Rename; + $hash->{DeleteFn} = \&FHEM::Services::backupToStorage::Delete; + $hash->{ShutdownFn} = \&FHEM::Services::backupToStorage::Shutdown; $hash->{NotifyOrderPrefix} = '51-'; # Order Nummer für NotifyFn $hash->{AttrList} = 'bTS_Host ' diff --git a/controls_backupToStorage.txt b/controls_backupToStorage.txt index 8ae7f33..1efcc5c 100644 --- a/controls_backupToStorage.txt +++ b/controls_backupToStorage.txt @@ -1,2 +1 @@ -UPD 2021-01-04_14:37:28 6262 FHEM/98_backupToStorage.pm -UPD 2021-01-04_14:53:20 19356 lib/FHEM/backupToStorage.pm +UPD 2021-11-09_12:56:24 6352 FHEM/98_backupToStorage.pm diff --git a/hooks/pre-commit b/hooks/pre-commit index 62713eb..c90bc05 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -5,7 +5,7 @@ use POSIX qw(strftime); use strict; my @filenames = ( 'FHEM/98_backupToStorage.pm', - 'lib/FHEM/backupToStorage.pm', + 'lib/FHEM/Services/backupToStorage.pm', ); my $controlsfile = 'controls_backupToStorage.txt'; diff --git a/lib/FHEM/backupToStorage.pm b/lib/FHEM/Services/backupToStorage.pm similarity index 99% rename from lib/FHEM/backupToStorage.pm rename to lib/FHEM/Services/backupToStorage.pm index 9ffc08f..a307c6e 100644 --- a/lib/FHEM/backupToStorage.pm +++ b/lib/FHEM/Services/backupToStorage.pm @@ -2,7 +2,7 @@ # # Developed with Kate # -# (c) 2020 Copyright: Marko Oldenburg (fhemsupport@cooltux.net) +# (c) 2020-2021 Copyright: Marko Oldenburg (fhemdevelopment@cooltux.net) # All rights reserved # # Special thanks goes to: @@ -29,7 +29,7 @@ # ############################################################################### -package FHEM::backupToStorage; +package FHEM::Services::backupToStorage; use strict; use warnings;