0.0.26 • Published 5 years ago
g2-ops-config v0.0.26
g2-ops-config
Goal
Centralized support for Cloud Config for Copart
API
- 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
}
- 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
5 years ago
0.0.25
7 years ago
0.0.24
7 years ago
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago