[freeside-commits] freeside/rt/bin rt-crontool,1.4.4.1,1.4.4.2

Ivan,,, ivan at wavetail.420.am
Mon Apr 18 17:14:13 PDT 2011


Update of /home/cvs/cvsroot/freeside/rt/bin
In directory wavetail.420.am:/tmp/cvs-serv4185/bin

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	rt-crontool 
Log Message:
landing 3.8.9 on 2.1 branch (few missed files)

Index: rt-crontool
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/bin/rt-crontool,v
retrieving revision 1.4.4.1
retrieving revision 1.4.4.2
diff -u -w -d -r1.4.4.1 -r1.4.4.2
--- rt-crontool	8 Apr 2011 23:13:48 -0000	1.4.4.1
+++ rt-crontool	19 Apr 2011 00:14:11 -0000	1.4.4.2
@@ -3,8 +3,8 @@
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
-#                                          <sales at bestpractical.com>
+# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
+#                                          <jesse at bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
 #
@@ -52,7 +52,7 @@
 # fix lib paths, some may be relative
 BEGIN {
     require File::Spec;
-    my @libs = ("lib", "local/lib");
+    my @libs = ("/opt/rt3/lib", "/opt/rt3/local/lib");
     my $bin_path;
 
     for my $lib (@libs) {
@@ -79,6 +79,8 @@
 use Getopt::Long;
 
 use RT::Interface::CLI qw(CleanEnv GetCurrentUser GetMessageContent loc);
+use RT::Tickets;
+use RT::Template;
 
 #Clean out all the nasties from the environment
 CleanEnv();
@@ -110,9 +112,6 @@
 #Connect to the database and get RT::SystemUser and RT::Nobody loaded
 RT::Init();
 
-require RT::Tickets;
-require RT::Template;
-
 #Get the current user all loaded
 my $CurrentUser = GetCurrentUser();
 
@@ -375,13 +374,13 @@
     print loc("Example:");
     print "\n";
     print " "
-      . loc( "The following command will find all active tickets in the queue 'general' and set their priority to 99 if they are overdue:"
+      . loc( "The following command will find all active tickets in the queue 'general' and set their priority to 99 if they haven't been touched in 4 hours:"
       )
       . "\n\n";
 
     print " bin/rt-crontool \\\n";
     print "  --search RT::Search::ActiveTicketsInQueue  --search-arg general \\\n";
-    print "  --condition RT::Condition::Overdue \\\n";
+    print "  --condition RT::Condition::UntouchedInHours --condition-arg 4 \\\n";
     print "  --action RT::Action::SetPriority --action-arg 99 \\\n";
     print "  --verbose\n";
 



More information about the freeside-commits mailing list