UpdateChecker::RemoteFile -- to check remote File whether updated or not with FTP and/or SCP.
# create UpdateChecker object $uc = new UpdateChecker::RemoteFile({data => $store, target_data => $hash_ref_OR_file_name, option => ...}, @option);
UpdateChecker for remote files.
This module need below modules:
Net::SCP Net::FTP File::Temp
# create object $uc = new UpdateChecker::RemoteFile({data => $store, target_data => $hash_ref_OR_file_name},@options);
All default methods of UpdateChecker is enable and you can use almost all of these by default usage. This module support merge method and replace target.
The following is explanation of methods whtich are not default methods and you cannot use by default usage andg.
# use FTP $uc->target($target_location, $target_name,['server','user','password']); $uc->target($target_location,['server','user','password']);
# use SCP (need ssh-agent) $uc->target($target_location, $target_name,['server','user']); $uc->target($target_location,['server','user']);
$target_name = $uc->target;
# use FTP $uc->connection_config('server','user','password'); # use SCP (need ssh-agent) $uc->connection_config('server','user');
It sets values for target which are needed for connection to remote host. If you set server, user and password, it regards as FTP. If you set server and user it regards as SCP.
# use FTP $uc->connection_config_default('server','user','password'); # use SCP (need ssh-agent) $uc->connection_config_default('server','user');
It sets values as a default which are needed for connection to remote host. If you set server, user and password, it regards as FTP. If you set server and user it regards as SCP.
These values are used when you don't specify such values with target or connection_config method.
UpdateChecker, UpdateChecker::Data
Ktat <ktat.is at gmail.com>
Copyright 2003 by Kato Atsushi <ktat.is at gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html