Skip to content

stefanjohncollier/gemmy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

56 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Gemmy

A tool to control you local bundle config

Features

  • 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

Usage

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

Notation

πŸ‘€ Configured correctly

   β”œβ”€β”€ dressipi_partner_api πŸ‘€

We're using dressipi_parnter_api locally and is configured fine

❌ Branch mismatch

   β”œβ”€β”€ 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

Setup

Prerequisites

The installer script requires brew

Install!

Run the following command

mkdir -p ~/scripts
cd ~/scripts
git clone [email protected]:stefanjohncollier/gemmy.git
cd gemmy
./install.sh
source ~/.bash_profile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages