Bundle is not working in the foreman-proxy

Hello Foreman-Developers ,
i am developing a smart proxy
plugin , i facing an issue for installing my gem plugin or others ,after
adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb
(logged in as Foreman user ) when i enter the command bundle it is showing
Error ( Bundler::GemfileNotFound ) i have tried to install other plugins
well know pluigns also in this way i been facing this problem . foreman
version i am using is 1.10 plz do suggest me .

Thank you dominic , but in various smart proxy plugin it is showing the
procedure of add a file to ~foreman-proxy/bundler.d/Gemfile.local.rb and
then run the bundle command ,then howcome i could install my local plugin
to smart proxy ,can u plz show the procedure

··· On Monday, March 28, 2016 at 5:36:55 PM UTC+5:30, Vikas Kuppili wrote: > > Hello Foreman-Developers , > i am developing a smart proxy > plugin , i facing an issue for installing my gem plugin or others ,after > adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb > (logged in as Foreman user ) when i enter the command bundle it is showing > Error ( Bundler::GemfileNotFound ) i have tried to install other plugins > well know pluigns also in this way i been facing this problem . foreman > version i am using is 1.10 plz do suggest me . > >

Thank you dominic i was pretty new to ruby and ruby on rails , i have a
plugin similar like *smart_proxy_example
<https://github.com/theforeman/smart_proxy_example> *in my local machine
can you please explain the steps in details so that i can attach the plugin
to smart proxy thank you so much .

··· On Monday, March 28, 2016 at 5:36:55 PM UTC+5:30, Vikas Kuppili wrote: > > Hello Foreman-Developers , > i am developing a smart proxy > plugin , i facing an issue for installing my gem plugin or others ,after > adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb > (logged in as Foreman user ) when i enter the command bundle it is showing > Error ( Bundler::GemfileNotFound ) i have tried to install other plugins > well know pluigns also in this way i been facing this problem . foreman > version i am using is 1.10 plz do suggest me . > >

Thank dmitri i followed that tutorial only in that last section source
made

i applied the following command

i am working on a debian distribution

gem 'smart_proxy_pulp', :git =>
"https://github.com/theforeman/smart-proxy-pulp" in the file
~foreman-proxy/bundler.d/Gemfile.local.rb

next in the ~foreman-proxy/bundler.d folder

i am using a command bundle which is causing an error of Could not
locate Gemfile or .bundle/ directory

··· On Monday, March 28, 2016 at 5:36:55 PM UTC+5:30, Vikas Kuppili wrote: > > Hello Foreman-Developers , > i am developing a smart proxy > plugin , i facing an issue for installing my gem plugin or others ,after > adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb > (logged in as Foreman user ) when i enter the command bundle it is showing > Error ( Bundler::GemfileNotFound ) i have tried to install other plugins > well know pluigns also in this way i been facing this problem . foreman > version i am using is 1.10 plz do suggest me . > >

hello dominic ,

initially i have create a foreman plugin using ruby engine and attached it
the foreman successfully , now i want to create a smart proxy plugin for
the foreman plugin to serve the rest api to my foreman plugin .

i was stuck in creating a smart proxy plugin

the step i followed is from the
http://projects.theforeman.org/projects/foreman/wiki/How_to_Install_a_Smart-Proxy_Plugin
<http://www.google.com/url?q=http%3A%2F%2Fprojects.theforeman.org%2Fprojects%2Fforeman%2Fwiki%2FHow_to_Install_a_Smart-Proxy_Plugin&sa=D&sntz=1&usg=AFQjCNHlUr4L7Pj2QOmPNbIkuD3I-anntg> for
source installing here

for the smart proxy plugin which is in my computer

in the ~foreman-proxy/bundler.d/Gemfile.local.rb file i added the line

gem 'smartproxy_vikas' ,path: '/home/vikas/splugins/smart_proxy_example'

and in the folder ~foreman-proxy/bundler.d/ i executed the bundle command
which shows the error

Could not locate Gemfile or .bundle/ directory

now plz guide me how can i install smart proxy plugin which is in my local
computer not in git , should serve my foreman plugin .for a get request or
post etc …

··· On Monday, March 28, 2016 at 5:36:55 PM UTC+5:30, Vikas Kuppili wrote: > > Hello Foreman-Developers , > i am developing a smart proxy > plugin , i facing an issue for installing my gem plugin or others ,after > adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb > (logged in as Foreman user ) when i enter the command bundle it is showing > Error ( Bundler::GemfileNotFound ) i have tried to install other plugins > well know pluigns also in this way i been facing this problem . foreman > version i am using is 1.10 plz do suggest me . > >

hello dominic ,dmitri ,
i was going in this process listed below plz suggest where should i have to
change .with folder name
initially i have create a foreman plugin using ruby engine and attached it
the foreman successfully , now i want to create a smart proxy plugin for
the foreman plugin to serve the rest api to my foreman plugin .

i was stuck in creating a smart proxy plugin

the step i followed is from the
http://projects.theforeman.org/projects/foreman/wiki/How_to_Install_a_Smart-Proxy_Plugin
<http://www.google.com/url?q=http%3A%2F%2Fprojects.theforeman.org%2Fprojects%2Fforeman%2Fwiki%2FHow_to_Install_a_Smart-Proxy_Plugin&sa=D&sntz=1&usg=AFQjCNHlUr4L7Pj2QOmPNbIkuD3I-anntg> for
source installing here

for the smart proxy plugin which is in my computer

in the ~foreman-proxy/bundler.d/Gemfile.local.rb file i added the line

gem 'smartproxy_vikas' ,path: '/home/vikas/splugins/smart_proxy_example'

and in the folder ~foreman-proxy/bundler.d/ i executed the bundle command
which shows the error

Could not locate Gemfile or .bundle/ directory

now plz guide me how can i install smart proxy plugin which is in my local
computer not in git , should serve my foreman plugin .for a get request or
post etc …

··· On Monday, March 28, 2016 at 5:36:55 PM UTC+5:30, Vikas Kuppili wrote: > > Hello Foreman-Developers , > i am developing a smart proxy > plugin , i facing an issue for installing my gem plugin or others ,after > adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb > (logged in as Foreman user ) when i enter the command bundle it is showing > Error ( Bundler::GemfileNotFound ) i have tried to install other plugins > well know pluigns also in this way i been facing this problem . foreman > version i am using is 1.10 plz do suggest me . > >

When using the smart proxy packages, we don't directly use Bundler,
which is why the "bundle" command won't work and shouldn't be used.
Instead, gems are installed via packages.

How did you install the gem exactly? You will need to "gem install" it
rather than using Bundler. Also it'd be good to show what you're adding
exactly to the Gemfile.local.rb.

··· On 28/03/16 13:06, Vikas Kuppili wrote: > Hello Foreman-Developers , > i am developing a smart proxy > plugin , i facing an issue for installing my gem plugin or others > ,after adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb > (logged in as Foreman user ) when i enter the command bundle it is > showing Error ( Bundler::GemfileNotFound ) i have tried to install > other plugins well know pluigns also in this way i been facing this > problem . foreman version i am using is 1.10 plz do suggest me .


Dominic Cleal
dominic@cleal.org

Those instructions are likely for a source installation, not packages.
Usually on a package installation we ship plugins as packages too, so
it's not typical to mix and match.

You should "gem install" the gem from your plugin then add it to
Gemfile.local.rb.

··· On 29/03/16 09:47, Vikas Kuppili wrote: > Thank you dominic , but in various smart proxy plugin it is showing the > procedure of add a file to ~foreman-proxy/bundler.d/Gemfile.local.rb and > then run the bundle command ,then howcome i could install my local > plugin to smart proxy ,can u plz show the procedure


Dominic Cleal
dominic@cleal.org

I’m not entirely clear if you are trying to create your own plugin,
but if so, I would suggest using a source-based install. You can find
instructions on how to perform different types (including source and
rpm-based) of installations at:
http://projects.theforeman.org/projects/foreman/wiki/How_to_Install_a_Smart-Proxy_Plugin

Cheers,
-d

··· On Tue, Mar 29, 2016 at 10:08 AM, Vikas Kuppili wrote: > Thank you dominic i was pretty new to ruby and ruby on rails , i have a > plugin similar like smart_proxy_example in my local machine can you please > explain the steps in details so that i can attach the plugin to smart proxy > thank you so much . > On Monday, March 28, 2016 at 5:36:55 PM UTC+5:30, Vikas Kuppili wrote: >> >> Hello Foreman-Developers , >> i am developing a smart proxy >> plugin , i facing an issue for installing my gem plugin or others ,after >> adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb >> (logged in as Foreman user ) when i enter the command bundle it is showing >> Error ( Bundler::GemfileNotFound ) i have tried to install other plugins >> well know pluigns also in this way i been facing this problem . foreman >> version i am using is 1.10 plz do suggest me . >> > -- > You received this message because you are subscribed to the Google Groups > "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-dev+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

> Thank dmitri i followed that tutorial only in that last section source
> made
>
> i applied the following command
>
> i am working on a debian distribution

If you are using the Debian packages, you are not on a source
installation. A source installation is one cloned with Git.

> gem 'smart_proxy_pulp', :git =>
> "https://github.com/theforeman/smart-proxy-pulp" in the
> file ~foreman-proxy/bundler.d/Gemfile.local.rb
>
> next in the ~foreman-proxy/bundler.d folder
>
> i am using a command bundle which is causing an error of Could
> not locate Gemfile or .bundle/ directory

You will need to either "gem install smart_proxy_pulp" to download it
from https://rubygems.org/gems/smart_proxy_pulp automatically, or clone
the repo and run "gem build smart_proxy_pulp.gemspec", then "gem install
*.gem".

A package installation does not support "bundle install" or using :git
or :path in a bundler.d file.

··· On 29/03/16 10:25, Vikas Kuppili wrote:


Dominic Cleal
dominic@cleal.org

The error you are getting suggests you are using a pre-packaged
install of smart-proxy, which isn’t going to work out of the box with
bundler. I would suggest, once again, switching to source-based
install. Please take a look at bundler docs at http://bundler.io for
information on how to specify location of gems.

Cheers,
-d

··· On Tue, Mar 29, 2016 at 11:50 AM, Vikas Kuppili wrote: > hello dominic , > > initially i have create a foreman plugin using ruby engine and attached it > the foreman successfully , now i want to create a smart proxy plugin for the > foreman plugin to serve the rest api to my foreman plugin . > > i was stuck in creating a smart proxy plugin > > the step i followed is from the > http://projects.theforeman.org/projects/foreman/wiki/How_to_Install_a_Smart-Proxy_Plugin > for source installing here > > for the smart proxy plugin which is in my computer > > in the ~foreman-proxy/bundler.d/Gemfile.local.rb file i added the line > > gem 'smartproxy_vikas' ,path: '/home/vikas/splugins/smart_proxy_example' > > and in the folder ~foreman-proxy/bundler.d/ i executed the bundle command > which shows the error > > Could not locate Gemfile or .bundle/ directory > > now plz guide me how can i install smart proxy plugin which is in my local > computer not in git , should serve my foreman plugin .for a get request or > post etc .... > > > > On Monday, March 28, 2016 at 5:36:55 PM UTC+5:30, Vikas Kuppili wrote: >> >> Hello Foreman-Developers , >> i am developing a smart proxy >> plugin , i facing an issue for installing my gem plugin or others ,after >> adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb >> (logged in as Foreman user ) when i enter the command bundle it is showing >> Error ( Bundler::GemfileNotFound ) i have tried to install other plugins >> well know pluigns also in this way i been facing this problem . foreman >> version i am using is 1.10 plz do suggest me . >> > -- > You received this message because you are subscribed to the Google Groups > "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-dev+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

The easiest thing to do is to clone smart-proxy’s git repository to
your local machine and use that for development. You could create/copy
the Gemfile into a packaged intall directory, but that’s probably not
the best approach for a developer-type installation.

-d

··· On Tue, Mar 29, 2016 at 12:08 PM, Vikas Kuppili wrote: > hello dominic ,dmitri , > i was going in this process listed below plz suggest where should i have to > change .with folder name > initially i have create a foreman plugin using ruby engine and attached it > the foreman successfully , now i want to create a smart proxy plugin for the > foreman plugin to serve the rest api to my foreman plugin . > > i was stuck in creating a smart proxy plugin > > the step i followed is from the > http://projects.theforeman.org/projects/foreman/wiki/How_to_Install_a_Smart-Proxy_Plugin > for source installing here > > for the smart proxy plugin which is in my computer > > in the ~foreman-proxy/bundler.d/Gemfile.local.rb file i added the line > > gem 'smartproxy_vikas' ,path: '/home/vikas/splugins/smart_proxy_example' > > and in the folder ~foreman-proxy/bundler.d/ i executed the bundle command > which shows the error > > Could not locate Gemfile or .bundle/ directory > > now plz guide me how can i install smart proxy plugin which is in my local > computer not in git , should serve my foreman plugin .for a get request or > post etc .... > > On Monday, March 28, 2016 at 5:36:55 PM UTC+5:30, Vikas Kuppili wrote: >> >> Hello Foreman-Developers , >> i am developing a smart proxy >> plugin , i facing an issue for installing my gem plugin or others ,after >> adding the file name to the ~foreman-proxy/bundler.d/Gemfile.local.rb >> (logged in as Foreman user ) when i enter the command bundle it is showing >> Error ( Bundler::GemfileNotFound ) i have tried to install other plugins >> well know pluigns also in this way i been facing this problem . foreman >> version i am using is 1.10 plz do suggest me . >> > -- > You received this message because you are subscribed to the Google Groups > "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-dev+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.