I was doing some Sunday night testing and decided to start playing with
creating Foreman plugins. I followed this
example How to Create a Plugin - Foreman.
I ended up getting the plugin to show up in Foreman but when I cam into
work and restarted the foreman service I got this error:
[root@foreman share]# service foreman restart
Stopping foreman: Foreman was not running. [FAILED]
Starting foreman:
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in
strict_error': Gem loading error: cannot load such file -- audited/activerecord (RuntimeError) from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in
rescue in rescue in block in system_require'
from
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in
rescue in block in system_require' from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in
block in system_require'
from
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in
each' from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in
system_require'
from /usr/share/foreman/config/application.rb:13:in <top (required)>' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in
require'
from
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in
require' from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/commands.rb:53:in
block in <top (required)>'
from
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/commands.rb:50:in
tap' from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/commands.rb:50:in
<top (required)>'
from
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in
require' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in
rescue in require'
from
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in
require' from /usr/share/foreman/script/rails:6:in
<main>'
[FAILED]
I'm new to ruby but I'm absolutely sure that I messed up a bunch of gems in
learning how to get my plugin to work. Can anyone help?
RHEL 6.5
Foreman 1.7.4