<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 *SVN*
 
+* Make sure the invoke task gives a sane error when the COMMAND value is omitted [halorgium]
+
 * Make sure variables are conditionally set in the deploy recipes, so as not to clobber values set elsewhere [Jamis Buck]
 
 * Fix &quot;input stream is empty&quot; errors from HighLine on prompt [Jamis Buck]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -15,8 +15,10 @@ desc &lt;&lt;-DESC
     $ cap ROLES=app,web SUDO=1 COMMAND=&quot;tail -f /var/log/messages&quot; invoke
 DESC
 task :invoke do
+  command = ENV[&quot;COMMAND&quot;] || &quot;&quot;
+  abort &quot;Please specify a command to execute on the remote servers (via the COMMAND environment variable)&quot; if command.empty?
   method = ENV[&quot;SUDO&quot;] ? :sudo : :run
-  invoke_command(ENV[&quot;COMMAND&quot;], :via =&gt; method)
+  invoke_command(command, :via =&gt; method)
 end
 
 desc &lt;&lt;-DESC</diff>
      <filename>lib/capistrano/recipes/standard.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cdb38cd2872b0220ea20343250b7556e3f62cd32</id>
    </parent>
  </parents>
  <author>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </author>
  <url>http://github.com/jamis/capistrano/commit/d20e62155e5bb080000b1fe6add3c9b23ca6ad51</url>
  <id>d20e62155e5bb080000b1fe6add3c9b23ca6ad51</id>
  <committed-date>2007-07-21T14:33:43-07:00</committed-date>
  <authored-date>2007-07-21T14:33:43-07:00</authored-date>
  <message>Make sure the invoke task gives a sane error if the COMMAND value is omitted (closes #8827)


git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de</message>
  <tree>1a56fdccd681a2811f73901adf5e1b32a235de99</tree>
  <committer>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </committer>
</commit>
