Sha256: 070199d50234b49dc38023ef37919e1cc105624b8a5d6bd38c8e01e22a71ee4a
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
module IsItWorking class EnvCheck def initialize(options={}) @filter = options[:filter] end def call(status) request_env.each do |key, value| status.info "#{key}: #{value}" end end protected def request_env @request_env ||= begin h = {} environment.each_pair do |key,value| if @filter.nil? or key.to_s =~ @filter h[key] = value.to_s end end h end end def environment ENV end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
is_it_working-cbeer-1.0.16 | lib/is_it_working/checks/env_check.rb |
is_it_working-cbeer-1.0.15 | lib/is_it_working/checks/env_check.rb |