Changeset 3596d9c8a2b13b9f524e13fd871eb6400764b1d7

Show
Ignore:
Timestamp:
03/22/07 02:38:19 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1174531099 +0000
git-parent:

[b3c640775d36906eb2e9f8a2b1cbf1bbb0ba8fd4]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1174531099 +0000
Message:

rename Resmon::Modules as Resmon::Module

git-svn-id: https://labs.omniti.com/resmon/trunk@21 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Config.pm

    rb3c6407 r3596d9c  
    2424        my @params = split(/,/, $2); 
    2525        grep { $kvs{$1} = $2 if /^\s*(\S+)\s*=>\s*(\S+)\s*$/ } @params; 
    26         my $object = bless \%kvs, "Resmon::Modules::$current"; 
    27         push(@{$self->{Modules}->{$current}}, $object); 
     26        my $object = bless \%kvs, "Resmon::Module::$current"; 
     27        push(@{$self->{Module}->{$current}}, $object); 
    2828      } elsif (/^\s*\}\s*$/) { 
    2929        $current = undef; 
     
    3434      if(/\s*(\S+)\s*\{/) { 
    3535        $current = $1; 
    36         $self->{Modules}->{$current} = []; 
     36        $self->{Module}->{$current} = []; 
    3737        next; 
    3838      } 
  • resmon

    rb3c6407 r3596d9c  
    1313use Resmon::ExtComm; 
    1414use Resmon::Status; 
    15 use Resmon::Modules
     15use Resmon::Module
    1616 
    1717GetOptions( 
     
    5151my $status = Resmon::Status->new($config->{statusfile}); 
    5252while(1) { 
    53   while(my($module_name, $mod_configs) = each %{$config->{Modules}}) { 
    54     my $coderef = Resmon::Modules::fetch_monitor($module_name); 
     53  while(my($module_name, $mod_configs) = each %{$config->{Module}}) { 
     54    my $coderef = Resmon::Module::fetch_monitor($module_name); 
    5555    foreach my $monobj (@$mod_configs) { 
    5656      my $check_rv = 'BAD',