Back to top


NAME

 UpdateChecker::RemoteFile -- to check remote File whether updated or not with FTP and/or SCP.

Back to top


SYNOPSIS

 # create UpdateChecker object
 $uc = new UpdateChecker::RemoteFile({data => $store, target_data => $hash_ref_OR_file_name, option => ...}, @option);

Back to top


DESCRIPTION

UpdateChecker for remote files.

Back to top


REQUIREMENT

This module need below modules:

 Net::SCP
 Net::FTP
 File::Temp

Back to top


CONSTRUCTOR

new
 # create object
 $uc = new UpdateChecker::RemoteFile({data => $store, target_data => $hash_ref_OR_file_name},@options);

Back to top


METHODS

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.

target
 # 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;
connection_config
 # 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.

connection_config_default
 # 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.

Back to top


SEE ALSO

  UpdateChecker, UpdateChecker::Data

Back to top


AUTHOR

 Ktat <ktat.is at gmail.com>

Back to top


COPYRIGHT

 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

Back to top