我是ruby和rbenv的新手,但我正试图让这个'bwoken'应用程序与rbenv一起工作。
这是bwoken,它适用于iOS UIAutomation测试: https://github.com/bendyworks/bwoken
我的问题是如何为rbenv添加钩子?
它说:
Ensure your after_cd_bundler rvm hook is enabled:
$ chmod u+x ~/.rvm/hooks/after_cd_bundler
Then, add the following line to your Rakefile:
好的,所以我在这里的版本历史中看到了评论 https://github.com/sstephenson/rbenv
这样说:
Added /usr/lib/rbenv/hooks to the plugin hook search path.
Added /usr/local/etc/rbenv.d to the list of directories searched for rbenv hooks.
问题是添加挂钩的原始默认位置是什么?他们在任何地方都没有提到它。放在哪里的正确位置?
答案 0 :(得分:0)
对于rbenv,您必须使用像.rbenv_version这样的点(。)文件。该插件在rvm上下文中进行配置。两者都是在同一系统上具有多个ruby版本的不同方式。