<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -25,8 +25,8 @@ end
 
 desc &quot;Run complete feature build&quot;
 task :cruise do
-  finished_successful = run_finished_features
-  in_progress_successful = run_in_progress_features
+  finished_successful = run_and_check_for_exception(&quot;finished&quot;)
+  in_progress_successful = run_and_check_for_exception(&quot;in_progress&quot;)
 
   unless finished_successful &amp;&amp; in_progress_successful
     puts
@@ -37,21 +37,11 @@ task :cruise do
   end
 end
 
-def run_in_progress_features
-  puts &quot;*** In-progress features ***&quot;
+def run_and_check_for_exception(task_name)
+  puts &quot;*** Running #{task_name} features ***&quot;
   begin
-    Rake::Task['features:in_progress'].invoke
-  rescue Exception =&gt; in_progress_exception
-    return false
-  end
-  true
-end
-
-def run_finished_features
-  puts &quot;*** Finished features ***&quot;
-  begin
-    Rake::Task['features:finished'].invoke
-  rescue Exception =&gt; finished_exception
+    Rake::Task[&quot;features:#{task_name}&quot;].invoke
+  rescue Exception =&gt; e
     return false
   end
   true</diff>
      <filename>tasks/features.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>be26c03021bcc22ec08da6fc31d906ea7da02b95</id>
    </parent>
  </parents>
  <author>
    <name>Joseph Wilk</name>
    <email>joe@josephwilk.net</email>
  </author>
  <url>http://github.com/josephwilk/cucumber_cocktails/commit/a6e1eb0b5eb12df087fbf945bedd73138cdec8a1</url>
  <id>a6e1eb0b5eb12df087fbf945bedd73138cdec8a1</id>
  <committed-date>2009-04-12T05:54:30-07:00</committed-date>
  <authored-date>2009-04-12T05:54:30-07:00</authored-date>
  <message>Factor out duplication in methods</message>
  <tree>e5c57bebbcacb4bfcec05d57923bff3b1888bbe4</tree>
  <committer>
    <name>Joseph Wilk</name>
    <email>joe@josephwilk.net</email>
  </committer>
</commit>
