class InfraCommand

def announce_preflight_info(targets, cfg_synth)

def announce_preflight_info(targets, cfg_synth)
  namespaces    = cfg_synth[:namespace].keys.map(&:to_sym)
  environments  = []
  namespaces.each do |ns_name|
    environments.concat(cfg_synth[:namespace][ns_name].keys.map(&:to_sym))
  end
  preflight_info = []
  preflight_info << %(environments: #{environments})
  preflight_info << %(\n)
  preflight_info << %(namespace: #{targets[0]})
  preflight_info << %(site:      #{targets[1]})
  preflight_info << %(project:   #{targets[2]})
  Say.terminal preflight_info.map(&:strip).join(%(\n))
end