Author: zwoop
Date: Mon May 16 21:42:07 2011
New Revision: 1103914

URL: http://svn.apache.org/viewvc?rev=1103914&view=rev
Log:
Move some constants out to a shared Config.pm module

Added:
    trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config.pm
Modified:
    
trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config/Records.pm

Added: 
trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config.pm
URL: 
http://svn.apache.org/viewvc/trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config.pm?rev=1103914&view=auto
==============================================================================
--- trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config.pm 
(added)
+++ trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config.pm 
Mon May 16 21:42:07 2011
@@ -0,0 +1,37 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+package Apache::TS::Config;
+
+use warnings;
+use strict;
+
+require 5.006;
+
+use Carp;
+require Exporter;
+
+our @ISA    = qw( Exporter );
+our @EXPORT = qw(TS_CONF_UNMODIFIED TS_CONF_MODIFIED TS_CONF_REMOVED);
+
+our $VERSION = "1.0";
+
+# Constants
+use constant {
+    TS_CONF_UNMODIFIED     => 0,
+    TS_CONF_MODIFIED       => 1,
+    TS_CONF_REMOVED        => 2
+};

Modified: 
trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config/Records.pm
URL: 
http://svn.apache.org/viewvc/trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config/Records.pm?rev=1103914&r1=1103913&r2=1103914&view=diff
==============================================================================
--- 
trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config/Records.pm
 (original)
+++ 
trafficserver/traffic/trunk/contrib/perl/ConfigMgmt/lib/Apache/TS/Config/Records.pm
 Mon May 16 21:42:07 2011
@@ -37,9 +37,10 @@
 
 package Apache::TS::Config::Records;
 
+use Apache::TS::Config;
+
 use warnings;
 use strict;
-
 require 5.006;
 
 use Carp;
@@ -47,14 +48,6 @@ use Carp;
 our $VERSION = "1.0";
 
 
-# This should get moved to a TS::Config.pm module (one level above here).
-use constant {
-    TS_CONF_UNMODIFIED     => 0,
-    TS_CONF_MODIFIED       => 1,
-    TS_CONF_REMOVED        => 2
-};
-
-
 #
 # Constructor
 #


Reply via email to