This may seem like a simple thing to the ruby gurus but as a complete newb
to ruby I cant figure it out.
All I need to do is create a very simple foreman plugin to add a static
html link to the foreman menu. I've been looking at the 'How to create a
plugin' wiki
(How to Create a Plugin - Foreman).
I have cloned the git repo to '/opt/mldsrepolink', run the rename script
and created the below file:
cat /usr/share/foreman/bundler.d/Gemfile.local.rb
gem 'mldsrepolink', :path => '/opt/mldsrepolink'
After restarting httpd I can no longer access foreman:
Gem loading error: cannot load such file – mldsrepolink (RuntimeError)
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in strict_error' /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:56:in
rescue in block in system_require'
/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' /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in
each'
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in system_require' /usr/share/foreman/config/application.rb:13:in
<top (required)>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require'
/usr/share/foreman/config/environment.rb:2:in <top (required)>' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require' config.ru:3:in
block in <main>'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in instance_eval' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in
initialize'
config.ru:1:in new' config.ru:1:in
<main>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in eval' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in
preload_app'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in <module:App>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in
<module:PhusionPassenger>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `<main>'
Is the info on the wiki page still valid? Im running foreman 1.5 on Redhat 6
All help appreciated.
Jeff