0.0.26 • Published 4 years ago

g2-ops-config v0.0.26

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

g2-ops-config

Goal

Centralized support for Cloud Config for Copart

API

  1. Standard API
import fetchConfigurations from 'g2-ops-config'

fetchConfigurations(APPLICATION, [PROFILE1, PROFILE2]).then((response) => console.log(response))

// Will Print
{
  [PROFILE1]: {}, // configurations for PROFILE1
  [PROFILE2]: {} // configurations for PROFILE1
}
  1. We will inject configurations into process when configuration begins with ENV-
// application.yaml
ENV:
  SESSION_ID = 'secret'
  BABEL_ENV = 'development'
import fetchConfigurations from 'g2-ops-config'

fetchConfigurations(APPLICATION, [PROFILE1, PROFILE2]).then((response) => console.log(response))

// Will Print
{
  [PROFILE1]: {}, // configurations for PROFILE1
  [PROFILE2]: {} // configurations for PROFILE1
}

// And also things are available on process
console.log(process.env.SESSION_ID) // should print 'secret'
console.log(process.env.BABEL_ENV) // should print 'development'

ISSUES

Please, report issues at: g2-ops-config

0.0.26

4 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago