File: GroupRepository.pm

package info (click to toggle)
munin 2.0.76-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,064 kB
  • sloc: perl: 11,684; java: 1,924; sh: 1,632; makefile: 636; javascript: 365; python: 267
file content (53 lines) | stat: -rw-r--r-- 971 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package Munin::Master::GroupRepository;

use base qw(Munin::Master::Config);

use warnings;
use strict;

use Carp;
use Log::Log4perl qw( :easy );


sub new {
    # This is now a container class used on some entries in the
    # Munin::Master::Config instance.  It used to be a
    # self-contained, self-booting class instantiator.

    my ($class, $gah) = @_;
    my $self = bless {}, $class;

    # $gah is usually a pointer to
    # Munin::Master::Config->instance()->{config}{groups};

    $self->{groups} = $gah;

    return $self;
}

1;

__END__

=head1 NAME

Munin::Master::GroupRepository - FIX

=head1 METHODS

Inherits methods from Munin::Master::Config.

=over

=item B<new>

  my $gr = Munin::Master::GroupRepository->new($groups_and_hosts);

Constructor.  $groups_and_hosts is the list of groups and hosts to associate
with the instance.  (This will usually be
C<< Munin::Master::Config->instance()->{config}{groups}; >>

=back

=cut
# vim: ts=4 : sw=4 : et