[icinga-checkins] icinga.org: icinga2/feature/configconvert-2743: s/DumpIcinga2Cfg/ ExportIcinga2Cfg/g

git at icinga.org git at icinga.org
Mon Apr 29 18:50:59 CEST 2013


Module: icinga2
Branch: feature/configconvert-2743
Commit: c457f6e2475343ace16740727f77bebdd41efc6e
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=c457f6e2475343ace16740727f77bebdd41efc6e

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Mon Apr 29 16:49:56 2013 +0200

s/DumpIcinga2Cfg/ExportIcinga2Cfg/g

just for Import/Export clarification.

---

 contrib/configconvert/Icinga2/Convert.pm           |   16 ++++++++--------
 .../{DumpIcinga2Cfg.pm => ExportIcinga2Cfg.pm}     |    2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/contrib/configconvert/Icinga2/Convert.pm b/contrib/configconvert/Icinga2/Convert.pm
index 2dc1b01..5780df0 100644
--- a/contrib/configconvert/Icinga2/Convert.pm
+++ b/contrib/configconvert/Icinga2/Convert.pm
@@ -1062,44 +1062,44 @@ sub convert_2x {
         #say Dumper($host_2x);
         #say "==============\n";
         # function decides itsself if object or template
-        Icinga2::DumpIcinga2Cfg::dump_host_2x($host_2x);
+        Icinga2::ExportIcinga2Cfg::dump_host_2x($host_2x);
     }
     #say Dumper($cfg_obj_2x);
 
     foreach my $service_2x_key (keys %{@$cfg_obj_2x{'service'}}) {
         my $service_2x = @$cfg_obj_2x{'service'}->{$service_2x_key};
 
-        Icinga2::DumpIcinga2Cfg::dump_service_2x($service_2x);
+        Icinga2::ExportIcinga2Cfg::dump_service_2x($service_2x);
     }
 
     foreach my $user_2x_key (keys %{@$cfg_obj_2x{'user'}}) {
         my $user_2x = @$cfg_obj_2x{'user'}->{$user_2x_key};
 
-        Icinga2::DumpIcinga2Cfg::dump_user_2x($user_2x);
+        Icinga2::ExportIcinga2Cfg::dump_user_2x($user_2x);
     }
 
     foreach my $timeperiod_2x_key (keys %{@$cfg_obj_2x{'timeperiod'}}) {
         my $timeperiod_2x = @$cfg_obj_2x{'timeperiod'}->{$timeperiod_2x_key};
 
-        Icinga2::DumpIcinga2Cfg::dump_timeperiod_2x($timeperiod_2x);
+        Icinga2::ExportIcinga2Cfg::dump_timeperiod_2x($timeperiod_2x);
     }
 
     foreach my $hostgroup_2x_key (keys %{@$cfg_obj_2x{'hostgroup'}}) {
         my $hostgroup_2x = @$cfg_obj_2x{'hostgroup'}->{$hostgroup_2x_key};
 
-        Icinga2::DumpIcinga2Cfg::dump_group_2x($hostgroup_2x);
+        Icinga2::ExportIcinga2Cfg::dump_group_2x($hostgroup_2x);
     }
 
     foreach my $servicegroup_2x_key (keys %{@$cfg_obj_2x{'servicegroup'}}) {
         my $servicegroup_2x = @$cfg_obj_2x{'servicegroup'}->{$servicegroup_2x_key};
 
-        Icinga2::DumpIcinga2Cfg::dump_group_2x($servicegroup_2x);
+        Icinga2::ExportIcinga2Cfg::dump_group_2x($servicegroup_2x);
     }
 
     foreach my $usergroup_2x_key (keys %{@$cfg_obj_2x{'usergroup'}}) {
         my $usergroup_2x = @$cfg_obj_2x{'usergroup'}->{$usergroup_2x_key};
 
-        Icinga2::DumpIcinga2Cfg::dump_group_2x($usergroup_2x);
+        Icinga2::ExportIcinga2Cfg::dump_group_2x($usergroup_2x);
     }
 
     # XXX Notifications as 2x object!!!
@@ -1107,7 +1107,7 @@ sub convert_2x {
     #foreach my $_2x_key (keys %{@$cfg_obj_2x{''}}) {
     #    my $_2x = @$cfg_obj_2x{''}->{$_2x_key};
     #
-    #    Icinga2::DumpIcinga2Cfg::dump__2x($_2x);
+    #    Icinga2::ExportIcinga2Cfg::dump__2x($_2x);
     #}
 
 
diff --git a/contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm b/contrib/configconvert/Icinga2/ExportIcinga2Cfg.pm
similarity index 99%
rename from contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm
rename to contrib/configconvert/Icinga2/ExportIcinga2Cfg.pm
index 621db22..f71abed 100644
--- a/contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm
+++ b/contrib/configconvert/Icinga2/ExportIcinga2Cfg.pm
@@ -21,7 +21,7 @@
 =cut
 
 
-package Icinga2::DumpIcinga2Cfg;
+package Icinga2::ExportIcinga2Cfg;
 
 use strict;
 





More information about the icinga-checkins mailing list