code style, more attributs and more functions
add functions Rename, Delete, Shutdown geändert: FHEM/98_backupToStorage.pm
This commit is contained in:
parent
5b3ee18585
commit
ce581ffd9f
@ -42,12 +42,20 @@ sub backupToStorage_Initialize {
|
|||||||
|
|
||||||
## 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::backupToStorage::Set;
|
||||||
$hash->{DefFn} = \&FHEM::backupToStorage::Define;
|
$hash->{DefFn} = \&FHEM::backupToStorage::Define;
|
||||||
$hash->{NotifyFn} = \&FHEM::backupToStorage::Notify;
|
$hash->{NotifyFn} = \&FHEM::backupToStorage::Notify;
|
||||||
$hash->{UndefFn} = \&FHEM::backupToStorage::Undef;
|
$hash->{UndefFn} = \&FHEM::backupToStorage::Undef;
|
||||||
$hash->{AttrList} = 'bTS_Host ' . 'bTS_User ' . 'bTS_Path ';
|
$hash->{RenameFn} = \&FHEM::backupToStorage::Rename;
|
||||||
|
$hash->{DeleteFn} = \&FHEM::backupToStorage::Delete;
|
||||||
|
$hash->{ShutdownFn} = \&FHEM::backupToStorage::Shutdown;
|
||||||
$hash->{NotifyOrderPrefix} = '51-'; # Order Nummer für NotifyFn
|
$hash->{NotifyOrderPrefix} = '51-'; # Order Nummer für NotifyFn
|
||||||
|
$hash->{AttrList} =
|
||||||
|
'bTS_Host '
|
||||||
|
. 'bTS_User '
|
||||||
|
. 'bTS_Path '
|
||||||
|
. 'btS_UploadTimeout '
|
||||||
|
. 'bTSType:Nextcloud';
|
||||||
|
|
||||||
return FHEM::Meta::InitMod( __FILE__, $hash );
|
return FHEM::Meta::InitMod( __FILE__, $hash );
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
UPD 2020-06-17_10:42:47 3074 FHEM/98_backupToStorage.pm
|
UPD 2020-06-17_12:01:37 3338 FHEM/98_backupToStorage.pm
|
||||||
UPD 2020-06-17_10:43:20 6336 lib/FHEM/backupToStorage.pm
|
UPD 2020-06-17_12:02:54 8823 lib/FHEM/backupToStorage.pm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user