CPANPLUS::Internals::Fetch man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

CPANPLUS::Internals::FePerl3Programmers ReferenceCPANPLUS::Internals::Fetch(3)


	   my $output = $cb->_fetch(
			       module	   => $modobj,
			       fetchdir	   => '/path/to/save/to',
			       verbose	   => BOOL,
			       force	   => BOOL,

	   $cb->_add_fail_host( host => '' );
	   $cb->_host_ok(	host => '' );

       CPANPLUS::Internals::Fetch fetches files from either ftp, http, file or
       rsync mirrors.

       This is the rough flow:

	       Delegate to File::Fetch;

$path = _fetch( module => $modobj, [fetchdir => '/path/to/save/to', fetch_from
       => 'scheme://path/to/fetch/from', verbose => BOOL, force => BOOL,
       prefer_bin => BOOL, ttl => $seconds] )
       "_fetch" will fetch files based on the information in a module object.
       You always need a module object. If you want a fake module object for a
       one-off fetch, look at "CPANPLUS::Module::Fake".

       "fetchdir" is the place to save the file to. Usually this information
       comes from your configuration, but you can override it expressly if

       "fetch_from" lets you specify an URI to get this file from. If you do
       not specify one, your list of configured hosts will be probed to
       download the file from.

       "force" forces a new download, even if the file already exists.

       "verbose" simply indicates whether or not to print extra messages.

       "prefer_bin" indicates whether you prefer the use of commandline
       programs over perl modules. Defaults to your corresponding config

       "ttl" (in seconds) indicates how long a cached copy is valid for. If
       the fetch time of the local copy is within the ttl, the cached copy is
       returned. Otherwise, the file is refetched.

       "_fetch" figures out, based on the host list, what scheme to use and
       from there, delegates to "File::Fetch" do the actual fetching.

       Returns the path of the output file on success, false on failure.

       Note that you can set a "blacklist" on certain methods in the config.
       Simply add the identifying name of the method (ie, "lwp") to:
	   $conf->_set_fetch( blacklist => ['lwp'] );

       And the "LWP" function will be skipped by "File::Fetch".

   _add_fail_host( host => $host_hashref )
       Mark a particular host as bad. This makes "CPANPLUS::Internals::Fetch"
       skip it in fetches until this cache is flushed.

   _host_ok( host => $host_hashref )
       Query the cache to see if this host is ok, or if it has been flagged as

       Returns true if the host is ok, false otherwise.

perl v5.10.1			  2009-05-04	 CPANPLUS::Internals::Fetch(3)

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net