문제

Now that I've been using rake for a while, I am finding I have certain utility tasks which I use in multiple Rails projects. These are tasks that are configured using environmental variables or through passing in parameters.

Obviously I would like these tasks to sit somewhere centrally so I don't have multiple copies to keep in sync if I update or add anything.

Where should i put these shared tasks and how should I share them between my projects?

도움이 되었습니까?

해결책

Create a ruby gem containing your rake tasks and then include that gem into each of your projects.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top