A tool to control you local bundle config
- Recursively check the Gemfile to see if they are used locally and are on the correct branch
- Specify a local branch
- Revert to using the remote code
- (Incoming) Attempt to change the branches to help
Go a repo with a Gemfile and then run the command like so:
$ gemmy
johnlewis-dressipi
βββ cells-haml
βββ ff_api β (Needs 'rails-5-2' branch, current: 'rails-5-2-with-formatted-price')
β βββ rspec-ff_api
βββ fresh_users
βββ dressipi_health_check
βββ dressipi_partner_api π
β βββ ff_api β (Needs 'master' branch, current: 'rails-5-2-with-formatted-price')
β β βββ rspec-ff_api
βββ rspec-ff_api
Specify a gem to use locally
$ gemmy local ff_api
Using ff_api at: /Users/stefancollier/Source/ff_api
Stop using a local gem
$ gemmy remote ff_api
No longer using ff_api locally
βββ dressipi_partner_api π
We're using dressipi_parnter_api locally and is configured fine
βββ dressipi_partner_api π
β βββ ff_api β (Needs 'master' branch, current: 'rails-5-2-with-formatted-price')
We're using ff_api locally and the branch required by dressipi_partner_api does not match your local branch
The installer script requires brew
Run the following command
mkdir -p ~/scripts
cd ~/scripts
git clone [email protected]:stefanjohncollier/gemmy.git
cd gemmy
./install.sh
source ~/.bash_profile