change lib structure
This commit is contained in:
parent
bdf9052535
commit
f150e1f679
@ -36,21 +36,21 @@ use warnings;
|
|||||||
use utf8;
|
use utf8;
|
||||||
use FHEM::Meta;
|
use FHEM::Meta;
|
||||||
|
|
||||||
use FHEM::backupToStorage;
|
use FHEM::Services::backupToStorage;
|
||||||
|
|
||||||
sub backupToStorage_Initialize {
|
sub backupToStorage_Initialize {
|
||||||
my $hash = shift;
|
my $hash = shift;
|
||||||
|
|
||||||
## Da ich mit package arbeite müssen in die Initialize für die jeweiligen hash Fn Funktionen der Funktionsname
|
## 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
|
# und davor mit :: getrennt der eigentliche package Name des Modules
|
||||||
$hash->{SetFn} = \&FHEM::backupToStorage::Set;
|
$hash->{SetFn} = \&FHEM::Services::backupToStorage::Set;
|
||||||
$hash->{DefFn} = \&FHEM::backupToStorage::Define;
|
$hash->{DefFn} = \&FHEM::Services::backupToStorage::Define;
|
||||||
$hash->{NotifyFn} = \&FHEM::backupToStorage::Notify;
|
$hash->{NotifyFn} = \&FHEM::Services::backupToStorage::Notify;
|
||||||
$hash->{UndefFn} = \&FHEM::backupToStorage::Undef;
|
$hash->{UndefFn} = \&FHEM::Services::backupToStorage::Undef;
|
||||||
$hash->{AttrFn} = \&FHEM::backupToStorage::Attr;
|
$hash->{AttrFn} = \&FHEM::Services::backupToStorage::Attr;
|
||||||
$hash->{RenameFn} = \&FHEM::backupToStorage::Rename;
|
$hash->{RenameFn} = \&FHEM::Services::backupToStorage::Rename;
|
||||||
$hash->{DeleteFn} = \&FHEM::backupToStorage::Delete;
|
$hash->{DeleteFn} = \&FHEM::Services::backupToStorage::Delete;
|
||||||
$hash->{ShutdownFn} = \&FHEM::backupToStorage::Shutdown;
|
$hash->{ShutdownFn} = \&FHEM::Services::backupToStorage::Shutdown;
|
||||||
$hash->{NotifyOrderPrefix} = '51-'; # Order Nummer für NotifyFn
|
$hash->{NotifyOrderPrefix} = '51-'; # Order Nummer für NotifyFn
|
||||||
$hash->{AttrList} =
|
$hash->{AttrList} =
|
||||||
'bTS_Host '
|
'bTS_Host '
|
||||||
|
@ -1,2 +1 @@
|
|||||||
UPD 2021-01-04_14:37:28 6262 FHEM/98_backupToStorage.pm
|
UPD 2021-11-09_12:56:24 6352 FHEM/98_backupToStorage.pm
|
||||||
UPD 2021-01-04_14:53:20 19356 lib/FHEM/backupToStorage.pm
|
|
||||||
|
@ -5,7 +5,7 @@ use POSIX qw(strftime);
|
|||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
my @filenames = ( 'FHEM/98_backupToStorage.pm',
|
my @filenames = ( 'FHEM/98_backupToStorage.pm',
|
||||||
'lib/FHEM/backupToStorage.pm',
|
'lib/FHEM/Services/backupToStorage.pm',
|
||||||
);
|
);
|
||||||
|
|
||||||
my $controlsfile = 'controls_backupToStorage.txt';
|
my $controlsfile = 'controls_backupToStorage.txt';
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Developed with Kate
|
# Developed with Kate
|
||||||
#
|
#
|
||||||
# (c) 2020 Copyright: Marko Oldenburg (fhemsupport@cooltux.net)
|
# (c) 2020-2021 Copyright: Marko Oldenburg (fhemdevelopment@cooltux.net)
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
#
|
#
|
||||||
# Special thanks goes to:
|
# Special thanks goes to:
|
||||||
@ -29,7 +29,7 @@
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
package FHEM::backupToStorage;
|
package FHEM::Services::backupToStorage;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
Loading…
x
Reference in New Issue
Block a user