change lib structure
This commit is contained in:
parent
bdf9052535
commit
f150e1f679
@ -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 '
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user