jonallured / copy_env

Automate dotenv setup with values from Hokusai or Heroku
5 stars 3 forks source link

Allow copying env from Hokusai as well #1

Closed anandaroop closed 6 years ago

anandaroop commented 6 years ago

Now that Artsy has more and more apps migrating to Kubernetes, it would be be helpful to be able to bootstrap a local development .env from that environment as well.

Hokusai makes this easy, thanks to the hokusai staging env get command.

This PR adds the ability to choose a source (Heroku or Hokusai) and use the appropriate command to fetch the staging environment variables before copying.

The default is Heroku, so a simple copy_env should work the same as before:

copy_env          # same as before
copy_env heroku   # same as before
copy_env hokusai  # will copy the hokusai staging env
jonallured commented 6 years ago

Looks great, thank you for doing this!!

Now I have to dust off the part of my brain that stores how to update the formula on our brew tap. 😝