title: NoMethodError: undefined method `execute' or 'run' capistrano 3
body: <p>I am trying to call a php script after deployment in my capistrano script by I am getting the below error if I try execute </p>
  
  <pre><code>NoMethodError: undefined method `execute' for main:Object
  </code></pre>
  
  <p>If I try run I get the following error</p>
  
  <pre><code>NoMethodError: undefined method `run' for main:Object
  </code></pre>
  
  <p>Below is the script which I am using</p>
  
  <pre><code>namespace :deploy do
          task :run_sql do
              run  "php -q /home/mydir/public_html/index.php argumen1 argument2 argument3 argument4"  
          end
  end
  after :deploy, "deploy:run_sql"
  </code></pre>
  
  <p>any suggestions what I am doing wrong?</p>
  
  <p>PS: I will execute this one after deploy once my code gets deployed and this php file is on the server where I am deploying to.</p>