Hi all,
While coding a gem for Rails 3.x app stress testing, I faced a problem when
I''m trying to load the test files.
Those files are located in "#{Rails.root}/test/performance/stress"
directory.
My gem provides a command in MY_GEM_PATH/bin/my_gem_name which loads and
execute those test files (from the Rails app directory).
How could the gem find the Rails.root path (and generally Rails
environment) ?
Can someone help me find a common pattern for doing this ?
PS: I already looked at some gems code on github, among with capistrano,
thin. But everyone seems to have his own recipe, and it''s not really
evident.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/69OKtz9KNj0J.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.