Please! remove capistrano dependency
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
Support Staff 2 Posted by Tristan Dunn on 29 Jan, 2010 05:00 PM
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
3 Posted by Good Riddance Girl on 13 Feb, 2010 03:56 PM
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.
Support Staff 4 Posted by Nick Quaranto on 17 Feb, 2010 06:27 PM
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.