diff options
author | Sven Nierlein <sven@nierlein.de> | 2014-01-20 14:49:14 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2014-01-20 14:49:14 +0100 |
commit | dfae38b656242898ce962c9ad93ed66be45fc3d4 (patch) | |
tree | d781a2ff90888c08379ebcd45f8ec51dda324882 /lib/Monitoring/Plugin/Config.pm | |
parent | b418181dfe80dd75169b6e8a619ac1932155dea2 (diff) | |
download | monitoring-plugin-perl-dfae38b656242898ce962c9ad93ed66be45fc3d4.tar.gz |
keep the old name in copyright for more transparencyv0.37
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'lib/Monitoring/Plugin/Config.pm')
-rw-r--r-- | lib/Monitoring/Plugin/Config.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Monitoring/Plugin/Config.pm b/lib/Monitoring/Plugin/Config.pm index 5e941d4..fe2b654 100644 --- a/lib/Monitoring/Plugin/Config.pm +++ b/lib/Monitoring/Plugin/Config.pm | |||
@@ -1,6 +1,9 @@ | |||
1 | package Monitoring::Plugin::Config; | 1 | package Monitoring::Plugin::Config; |
2 | 2 | ||
3 | use 5.006; | ||
3 | use strict; | 4 | use strict; |
5 | use warnings; | ||
6 | |||
4 | use Carp; | 7 | use Carp; |
5 | use File::Spec; | 8 | use File::Spec; |
6 | use base qw(Config::Tiny); | 9 | use base qw(Config::Tiny); |
@@ -93,10 +96,12 @@ sub read_string | |||
93 | sub write { croak "Write access not permitted" } | 96 | sub write { croak "Write access not permitted" } |
94 | 97 | ||
95 | # Return last file used by read(); | 98 | # Return last file used by read(); |
96 | sub np_getfile { return $CURRENT_FILE; } | 99 | sub mp_getfile { return $CURRENT_FILE; } |
97 | 100 | ||
98 | 1; | 101 | 1; |
99 | 102 | ||
103 | __END__ | ||
104 | |||
100 | =head1 NAME | 105 | =head1 NAME |
101 | 106 | ||
102 | Monitoring::Plugin::Config - read nagios plugin .ini style config files | 107 | Monitoring::Plugin::Config - read nagios plugin .ini style config files |
@@ -169,7 +174,8 @@ https://monitoring-plugins.org | |||
169 | 174 | ||
170 | =head1 COPYRIGHT AND LICENSE | 175 | =head1 COPYRIGHT AND LICENSE |
171 | 176 | ||
172 | Copyright (C) 2006-2014 Monitoring Plugin Development Team | 177 | Copyright (C) 2014 by Monitoring Plugin Team |
178 | Copyright (C) 2006-2014 by Nagios Plugin Development Team | ||
173 | 179 | ||
174 | This library is free software; you can redistribute it and/or modify | 180 | This library is free software; you can redistribute it and/or modify |
175 | it under the same terms as Perl itself. | 181 | it under the same terms as Perl itself. |