Issue #8431 has been updated by Nikolay Sturm.

Status changed from Unreviewed to Accepted


----------------------------------------
Bug #8431: cucumber script is found by the PATH environment variable rather 
than the Gem path
https://projects.puppetlabs.com/issues/8431

Author: Oliver Hookins
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: 
Branch: 


In .../bin/cucumber-puppet:

79 command << "cucumber --strict"

The unqualified path, and the fact that we are shelling out to the cucumber 
script rather than using the cucumber library directly (which is arguably the 
subject of another bug/feature ticket, means that we have to rely on the PATH 
environment variable to find cucumber. In the case where we are using alternate 
Rubygems (in our case, where we have explicitly installed Ruby Enterprise in a 
separate location to the standard CentOS Ruby) and have called cucumber-puppet 
through that version of Ruby, we end up trying to find the cucumber script by a 
different mechanism.

I would suggest using Rubygems' built-in mechanisms for determining the correct 
path to the cucumber script. Branch coming.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to