-
Notifications
You must be signed in to change notification settings - Fork 0
Description
The remote .env file should be downloadable for offline use. Local files should also be pushable back to the remote once a network connection is available to sync any changes made.
Offline mode should only be allowed in development environment to avoid accidental ENV dumping or overriding on production servers.
rake envoku:download --url s3://user:pass@bucket/filename.env --path .env
rake envoku:upload --url s3://user:pass@bucket/filename.env --path .envIf no --url argument is passed, it should default to ENVOKU_URL environment variable if one exists then, finally, raise an exception that no remote URL can be detected.
--path will default to .env to allow developers to download the file wherever they want.
Upload will work in a similar fashion to download, however extra confirmation should be presented as it is a destructive remote action. A diff would ideally be displayed to show the changes made locally before overwrite is confirmed.