1CPANPLUS::Selfupdate(3)User Contributed Perl DocumentatioCnPANPLUS::Selfupdate(3)
2
3
4

NAME

6       CPANPLUS::Selfupdate
7

SYNOPSIS

9           $su     = $cb->selfupdate_object;
10
11           @feats  = $su->list_features;
12           @feats  = $su->list_enabled_features;
13
14           @mods   = map { $su->modules_for_feature( $_ ) } @feats;
15           @mods   = $su->list_core_dependencies;
16           @mods   = $su->list_core_modules;
17
18           for ( @mods ) {
19               print $_->name " should be version " . $_->version_required;
20               print "Installed version is not uptodate!"
21                   unless $_->is_installed_version_sufficient;
22           }
23
24           $ok     = $su->selfupdate( update => 'all', latest => 0 );
25

METHODS

27       $self = CPANPLUS::Selfupdate->new( $backend_object );
28
29       Sets up a new selfupdate object. Called automatically when a new back‐
30       end object is created.
31
32       $bool = $self->selfupdate( update => "core⎪dependencies⎪enabled_fea‐
33       tures⎪features⎪all", latest => BOOL )
34
35       Selfupdate CPANPLUS. You can update either the core (CPANPLUS itself),
36       the core dependencies, all features you have currently turned on, or
37       all features available, or everything.
38
39       The "latest" option determines whether it should update to the latest
40       version on CPAN, or if the minimal required version for CPANPLUS is
41       good enough.
42
43       Returns true on success, false on error.
44
45       @features = $self->list_features
46
47       Returns a list of features that are supported by CPANPLUS.
48
49       @features = $self->list_enabled_features
50
51       Returns a list of features that are enabled in your current CPANPLUS
52       installation.
53
54       @mods = $self->modules_for_feature( FEATURE [,AS_HASH] )
55
56       Returns a list of "CPANPLUS::Selfupdate::Module" objects which repre‐
57       sent the modules required to support this feature.
58
59       For a list of features, call the "list_features" method.
60
61       If the "AS_HASH" argument is provided, no module objects are returned,
62       but a hashref where the keys are names of the modules, and values are
63       their minimum versions.
64
65       @mods = $self->list_core_dependencies( [AS_HASH] )
66
67       Returns a list of "CPANPLUS::Selfupdate::Module" objects which repre‐
68       sent the modules that comprise the core dependencies of CPANPLUS.
69
70       If the "AS_HASH" argument is provided, no module objects are returned,
71       but a hashref where the keys are names of the modules, and values are
72       their minimum versions.
73
74       @mods = $self->list_core_modules( [AS_HASH] )
75
76       Returns a list of "CPANPLUS::Selfupdate::Module" objects which repre‐
77       sent the modules that comprise the core of CPANPLUS.
78
79       If the "AS_HASH" argument is provided, no module objects are returned,
80       but a hashref where the keys are names of the modules, and values are
81       their minimum versions.
82

CPANPLUS::Selfupdate::Module

84       "CPANPLUS::Selfupdate::Module" extends "CPANPLUS::Module" objects by
85       providing accessors to aid in selfupdating CPANPLUS.
86
87       These objects are returned by all methods of "CPANPLUS::Selfupdate"
88       that return module objects.
89
90       $version = $mod->version_required
91
92       Returns the version of this module required for CPANPLUS.
93
94       $bool = $mod->is_installed_version_sufficient
95
96       Returns true if the installed version of this module is sufficient for
97       CPANPLUS, or false if it is not.
98

BUG REPORTS

100       Please report bugs or other issues to <bug-cpanplus@rt.cpan.org<gt>.
101

AUTHOR

103       This module by Jos Boumans <kane@cpan.org>.
104
106       The CPAN++ interface (of which this module is a part of) is copyright
107       (c) 2001 - 2007, Jos Boumans <kane@cpan.org>. All rights reserved.
108
109       This library is free software; you may redistribute and/or modify it
110       under the same terms as Perl itself.
111
112
113
114perl v5.8.8                       2007-03-31           CPANPLUS::Selfupdate(3)
Impressum