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

run gem installed with rvm_gem? #56

Closed
maxgalbu opened this issue Aug 27, 2014 · 1 comment
Closed

run gem installed with rvm_gem? #56

maxgalbu opened this issue Aug 27, 2014 · 1 comment

Comments

@maxgalbu
Copy link

I have this code to install a gem I copied in /tmp/mailcatcher.gem

rvm_gem { 'mailcatcher':
    name            => 'mailcatcher',
    source          => '/tmp/mailcatcher.gem',
    ruby_version    => 'ruby-1.9.3-p547',
    ensure          => latest,
    require         => [
        File['/tmp/mailcatcher.gem'], 
        Rvm_system_ruby['ruby-1.9.3-p547']
    ],
}

How can i run the installed gem script afterwards?

If i do this, it fails with "could not find command mailcatcher":

exec { 'start mailcatcher':
    command         => "mailcatcher --http-ip=0.0.0.0",
    require         => Rvm_gem['mailcatcher'],
}

I need something to refresh the env variables, or something to get the new installed gem path.

EDIT: I could hardcode the new path, like /usr/local/rvm/ruby-1.9.3-p547/bin/ but there must be a better way

@maxgalbu
Copy link
Author

maxgalbu commented Sep 2, 2014

@maxgalbu maxgalbu closed this as completed Sep 2, 2014
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