mirror of https://github.com/hashicorp/consul
8 lines
215 B
JavaScript
8 lines
215 B
JavaScript
|
import { helper } from '@ember/component/helper';
|
||
|
import $ from 'consul-ui/config/environment';
|
||
|
export function env([name, def = ''], hash) {
|
||
|
return $[name] != null ? $[name] : def;
|
||
|
}
|
||
|
|
||
|
export default helper(env);
|