# File lib/r10k/deployment/config.rb, line 20 def setting(key) keys = [key] case key when String keys << key.to_sym when Symbol keys << key.to_s end # Scan all possible keys to see if the config has a matching value keys.inject(nil) do |rv, k| v = @config[k] break v unless v.nil? end end