Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script.rb can't run from rails controller #23

Open
ypodo opened this issue Dec 19, 2012 · 0 comments
Open

script.rb can't run from rails controller #23

ypodo opened this issue Dec 19, 2012 · 0 comments

Comments

@ypodo
Copy link

ypodo commented Dec 19, 2012

Hi,
I wrote script to execute remote commands using net/ssh.
my script works fine when I run it from command line.
But when I try to execute it from rails controller I got an error.

`require': no such file to load -- net/ssh (LoadError)

can anybody help me to understand what I am doing wrong.
Thanks

Rails controller
@Result=system "ruby script.rb"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant