Skip to content

ykpythemind/env_sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published