module ChefConfig::Mixin::TrainTransport

def contains_split_fqdn?(hash, fqdn)


This will be a common mistake so we should catch it
A hostname has to be specified as ['host.example.org']

Returns true if the above example is true

[host.example.org] => { host: { example: { org: {} } } }
Toml creates hashes when a key is separated by periods, e.g.
def contains_split_fqdn?(hash, fqdn)
  fqdn.split(".").reduce(hash) do |h, k|
    v = h[k]
    if Hash === v
      v
    else
      break false
    end
  end
end