2017-09-19 14:47:10 +00:00
|
|
|
import Ember from 'ember';
|
|
|
|
import config from '../config/environment';
|
|
|
|
|
|
|
|
const { Service, get, computed } = Ember;
|
|
|
|
|
|
|
|
export default Service.extend({
|
|
|
|
unknownProperty(path) {
|
|
|
|
return get(config, path);
|
|
|
|
},
|
|
|
|
|
|
|
|
isDev: computed.equal('environment', 'development'),
|
|
|
|
isProd: computed.equal('environment', 'production'),
|
2017-10-23 17:21:44 +00:00
|
|
|
isTest: computed.equal('environment', 'test'),
|
2017-09-19 14:47:10 +00:00
|
|
|
});
|