Foreman Plugin Installation

I am trying to install a plugin on foreman through a vagrant box but I get this error. When I run bundle install the same error appears. I have checked the files in my plugin and walked through the installation guide at https://github.com/theforeman/foreman/blob/develop/developer_docs/how_to_create_a_plugin.asciidoc
but I still don’t have any luck.

You need to run it in the plugin directory as well.

Okay, I did that and bundle install is successful in the plugin directory and in the foreman core directory. But now I am getting another error:


I wave read/write permissions for the vagrant and forman_plugin_template folders.

Actually I got that fixed and I am getting this error: