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';
|
|
|
|
|
|
|
|
export default Service.extend({
|
|
|
|
unknownProperty(path) {
|
|
|
|
return get(config, path);
|
|
|
|
},
|
|
|
|
|
2017-12-15 21:39:18 +00:00
|
|
|
isDev: equal('environment', 'development'),
|
|
|
|
isProd: equal('environment', 'production'),
|
|
|
|
isTest: equal('environment', 'test'),
|
2017-09-19 14:47:10 +00:00
|
|
|
});
|