Project

env_sync

0.0
No commit activity in last 3 years
No release in over 3 years
Manage .env file by 1 file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 5.0
~> 10.0
 Project Readme

env_sync

env_sync helps to manage .env files of some repositories.

Setup env.yaml and just apply! env_sync creates .env files each of your related repositories.

- dir: "/hoge"
  content: |
    HOGE=fuga
    FOO=bar
- dir: "~/User/code"
  content: |
    PIYO=piyo
  file: .env.development
- dir: "fuga"
  content: |
    PIYO=piyo
$ env_sync env.yaml

You will find /hoge/.env , ~/User/code/.env.development, ./fuga/.env

options

  • dir: copy destination directory
  • content: contents of .env file
  • file (optional): name of .env file (sometimes prefer .env.development)

Installation

$ gem install env_sync

Usage

$ env_sync path/to/env.yaml

Test

$ rake

License

The gem is available as open source under the terms of the MIT License.