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

Ivan,,, ivan at wavetail.420.am
Mon Apr 18 17:21:29 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	rt-crontool 
Log Message:
an oops 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.2
retrieving revision 1.4.4.3
diff -u -w -d -r1.4.4.2 -r1.4.4.3
--- rt-crontool	19 Apr 2011 00:14:11 -0000	1.4.4.2
+++ rt-crontool	19 Apr 2011 00:21:27 -0000	1.4.4.3
@@ -3,8 +3,8 @@
 # 
 # COPYRIGHT:
 # 
-# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
-#                                          <jesse at bestpractical.com>
+# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+#                                          <sales at bestpractical.com>
 # 
 # (Except where explicitly superseded by other copyright notices)
 # 
@@ -79,8 +79,6 @@
 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();
@@ -112,6 +110,9 @@
 #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();
 
@@ -374,13 +375,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 haven't been touched in 4 hours:"
+      . loc( "The following command will find all active tickets in the queue 'general' and set their priority to 99 if they are overdue:"
       )
       . "\n\n";
 
     print " bin/rt-crontool \\\n";
     print "  --search RT::Search::ActiveTicketsInQueue  --search-arg general \\\n";
-    print "  --condition RT::Condition::UntouchedInHours --condition-arg 4 \\\n";
+    print "  --condition RT::Condition::Overdue \\\n";
     print "  --action RT::Action::SetPriority --action-arg 99 \\\n";
     print "  --verbose\n";
 



More information about the freeside-commits mailing list