Project

General

Profile

Actions

Bug #8851

closed

Loading seed file of plugins with dash in name fails

Added by Marek Hulán over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Running db:seed rake task does not load seed files from engines (plugins) that contains dash in their name (e.g. foreman-tasks). Here's the trace from log (no other is displayed to user).

wrong constant name Foreman-tasks
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `const_defined?'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `each'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
/home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:55:in `block in <top (required)>'
/home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:53:in `each'
/home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:53:in `<top (required)>'

The fix is trivial, PR will follow.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #9141: Problems with asset precompilation with dash in plugin nameResolved01/28/2015Actions
Actions

Also available in: Atom PDF