I want to make some modifications to the gem https://github.com/opscode/knife-ec2
and use that locally with knife
. I have the knife-ec2
gem installed locally, but I want to use the modified version for testing purposes. How can I do that?
Asked
Active
Viewed 1,149 times
0

Omar
- 39,496
- 45
- 145
- 213
-
Neither linked questions are duplicates. The first one asks for just installing a local .gem file, which results in an awkward process requiring compiling and updating the gem anytime a change is made. Installing from a github repository meanwhile require committing and pushing every single change to the repository. The correct answer would be to use ```gem :foo, path: './path/to/local/checkout/to/foo``` in a Gemfile – Matthias Winkelmann Mar 19 '17 at 20:42
1 Answers
0
You can explicitly specify the path of the gem in your gemfile :
gem :foo, :git => 'git://github.com/rails/foo.git'

uday
- 8,544
- 4
- 30
- 54