Please! remove capistrano dependency

Falk Pauser's Avatar

Falk Pauser

29 Jan, 2010 02:26 PM via web

Hoptoad-Notifier was working just fine until I upgrade my recently v2-ready hoptoad_notifier (installed as plugin).
Here is what "script/generate hoptoad" says:

$ script/generate hoptoad
      exists  lib/tasks
      create  lib/tasks/hoptoad_notifier_tasks.rake
      insert  
Dir[File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
  $: << File.join(vendored_notifier, 'lib')
end

require 'hoptoad_notifier/capistrano'
 appended to config/deploy.rb
        rake  rake hoptoad:test
(in /home/fpauser/dev/rails/fts)
rake aborted!
uninitialized constant Capistrano
/home/fpauser/dev/rails/fts/Rakefile:14
(See full trace by running task with --trace)
        rake  hoptoad:test failed. Rolling back
      remove  
Dir[File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
  $: << File.join(vendored_notifier, 'lib')
end

require 'hoptoad_notifier/capistrano'
 removed from config/deploy.rb
          rm  lib/tasks/hoptoad_notifier_tasks.rake
    notempty  lib/tasks
    notempty  lib
  1. Support Staff 2 Posted by Tristan Dunn on 29 Jan, 2010 05:00 PM

    Tristan Dunn's Avatar

    Hi,

    If you are not using Capistrano you shouldn't need a config/deploy.rb file and then it won't add the HT tasks to it. Can you remove that file and try running it again? If it still fails can you paste the text around line 14 in your Rakefile.

    Thanks,
    Tristan

  2. 3 Posted by Good Riddance Girl on 13 Feb, 2010 03:56 PM

    Good Riddance Girl's Avatar

    deployments using Vlad also employ a config/deploy.rb and as you might guess, the Capistrano precondition fails as mentioned above. If I move the file out of the way and comment out all references to vlad and any methods it supplies, it will then work. In my opinion though, this is a suboptimal workaround.

  3. Support Staff 4 Posted by Nick Quaranto on 17 Feb, 2010 06:27 PM

    Nick Quaranto's Avatar

    Hi there,

    It seems reasonable to make our generator smarter about projects that are using Vlad. We'll look into this, thanks for reporting it.

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

What is the last month of the year?

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.