Sha256: f7bebafd3a17cdc33a3cccd7fb2043ce57efa3c59be0a53039a90a5b54f89a49
Contents?: true
Size: 465 Bytes
Versions: 14
Compression:
Stored size: 465 Bytes
Contents
# frozen_string_literal: true require "service_skeleton/config_variable" class ServiceSkeleton::ConfigVariable::String < ServiceSkeleton::ConfigVariable private def pluck_value(env) maybe_default(env) do env[@name.to_s].tap do |s| if @opts[:match] && s !~ @opts[:match] raise ServiceSkeleton::Error::InvalidEnvironmentError, "Value for #{@name} must match #{@opts[:match]}" end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems