symfony icon indicating copy to clipboard operation
symfony copied to clipboard

NoMethodError: undefined method `symfony_console'

Open martijnhartlief opened this issue 5 years ago • 2 comments

When using:

namespace :deploy do
  task :migrate do
    on roles(:db) do
      symfony_console('doctrine:migrations:migrate', '--no-interaction')
    end
  end
end

martijnhartlief avatar Nov 13 '18 14:11 martijnhartlief

Interesting. I see that it is defined in https://github.com/capistrano/symfony/blob/2.0.0-alfa2/lib/capistrano/dsl/symfony.rb

I let someone with a bit more ruby knowledge answer this.

Nyholm avatar Nov 13 '18 15:11 Nyholm

Yes I see the symfony.rb file exists, and Symfony defines work for the base Capistrano functions. But when I try to use it in a rake file or in the deploy.rb, symfony_console is undefined.

Unfortunately, my ruby knowledge is not sufficient to figure out why this is happening.

martijnhartlief avatar Nov 13 '18 17:11 martijnhartlief