2017-12-15 21:39:18 +00:00
|
|
|
import { equal } from '@ember/object/computed';
|
|
|
|
import Service from '@ember/service';
|
|
|
|
import { get } from '@ember/object';
|
2017-09-19 14:47:10 +00:00
|
|
|
import config from '../config/environment';
|
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class ConfigService extends Service {
|
2017-09-19 14:47:10 +00:00
|
|
|
unknownProperty(path) {
|
|
|
|
return get(config, path);
|
2020-06-10 13:49:16 +00:00
|
|
|
}
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@equal('environment', 'development') isDev;
|
|
|
|
@equal('environment', 'production') isProd;
|
|
|
|
@equal('environment', 'test') isTest;
|
|
|
|
}
|