1Test::AutoBuild::Stage:U:sYeurm(C3o)ntributed Perl DocumTeenstta:t:iAountoBuild::Stage::Yum(3)
2
3
4

NAME

6       Test::AutoBuild::Stage::Yum - Create an index for Yum package
7       management tool
8

SYNOPSIS

10         use Test::AutoBuild::Stage::Yum
11
12         my $stage = Test::AutoBuild::Stage::Yum->new(name => "yum",
13                                                      label => "Create yum index",
14                                                      options => {
15                                                        directory => "/var/lib/builder/public_html/dist",
16                                                        parameters => "-d -s -n",
17                                                      });
18
19         $stage->run($runtime);
20

DESCRIPTION

22       This module invokes the "yum-arch(8)" command to generate an index of
23       RPM packages generated during the build. The index enables use of the
24       yum(8) command to install packages generated by the builder. The
25       "yum-arch(8)" command is expected to be found in the $PATH.
26

CONFIGURATION

28       In addition to the standard parameters defined by the
29       Test::AutoBuild::Stage module, this module accepts two entries in the
30       "options" parameter:
31
32       directory
33           The full path to the directory containing RPMs to be indexed. If
34           this option is not specified, then the "directories" option must be
35           set.
36
37       directories
38           An array of paths to directories containing RPMs to be indexed. If
39           this option is not specified, then the "directory" option must be
40           set.
41
42       parameters
43           A string of command line arguments to be passed to the "yum-arch"
44           command, see the "yum-arch(8)" manual page for details of possible
45           values.
46
47   EXAMPLE
48         {
49           name = yum
50           label = Update Yum Repository
51           module = Test::AutoBuild::Stage::Yum
52           critical = 0
53           options = {
54             directory = /var/lib/builder/public_html/dist
55             parameters = -d
56           }
57         }
58

METHODS

60       $stage->process($runtime);
61           For each directory defined in the "options" parameter, this method
62           will run the "yum-arch" command to generate the index.
63

AUTHORS

65       Daniel Berrange <dan@berrange.com> Dennis Gregorovic
66       <dgregorovic@alum.mit.edu>
67
69       Copyright (C) 2004 Red Hat, Inc.
70

SEE ALSO

72       perl(1), Test::AutoBuild::Stage, yum(8), "yum-arch(8)"
73
74
75
76perl v5.12.1                      2007-12-08    Test::AutoBuild::Stage::Yum(3)
Impressum