Sha256: 413f1271c57b7bf04a66acbeeffc22f514b2b3bc4b61ce05484ca8f10ceb632c
Contents?: true
Size: 433 Bytes
Versions: 20
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true # Get an environment variable. Puppet::Functions.create_function(:'system::env') do # @param name Environment variable name. # @example Get the USER environment variable # system::env('USER') dispatch :env do required_param 'String', :name return_type 'String' end def env(name) Puppet.lookup(:bolt_executor) {}&.report_function_call(self.class.name) ENV[name] end end
Version data entries
20 entries across 20 versions & 1 rubygems