[Jifty-commit] r1900 -

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Aug 30 20:14:48 EDT 2006


Author: schwern
Date: Wed Aug 30 20:14:48 2006
New Revision: 1900

Modified:
   /   (props changed)
   jifty/trunk/lib/Jifty/Manual/Style.pod

Log:
 r17639 at windhund:  schwern | 2006-08-30 20:13:32 -0400
 Mention Shell::Command and Jifty::Test->temp_file in the style guide.


Modified: jifty/trunk/lib/Jifty/Manual/Style.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Style.pod	(original)
+++ jifty/trunk/lib/Jifty/Manual/Style.pod	Wed Aug 30 20:14:48 2006
@@ -25,4 +25,27 @@
         ...
   }
 
+
+=head3 Test temp files
+
+Files created by tests should be declared as such using
+Jifty::Test->test_file() so they are cleaned up on a successful test
+run.
+
+
+=head3 Use Shell::Command
+
+Shell::Command has a number of functions which work like common shell file
+commands such as touch, cp and mv.  Use them instead of coding your own.
+
+For example, instead of this:
+
+    open my $file, ">foo";
+    close $file;
+
+Do this:
+
+    use Shell::Command;
+    touch $file;
+
 =cut


More information about the Jifty-commit mailing list