def ufo_env
      settings = YAML.load_file("#{Ufo.root}/.ufo/settings.yml")
      env = settings.find do |_env, section|
        section ||= {}
        ENV['AWS_PROFILE'] && ENV['AWS_PROFILE'] == section['aws_profile']
      end

      ufo_env = env.first if env
      ufo_env = ENV['UFO_ENV'] if ENV['UFO_ENV'] # highest precedence
      ufo_env || 'development'
    end
def ufo_env
      settings = YAML.load_file("#{Ufo.root}/.ufo/settings.yml")
      env = settings.find do |_env, section|
        section ||= {}
        ENV['AWS_PROFILE'] && ENV['AWS_PROFILE'] == section['aws_profile']
      end

      ufo_env = env.first if env
      ufo_env = ENV['UFO_ENV'] if ENV['UFO_ENV'] # highest precedence
      ufo_env || 'development'
    end
Resovles infinite problem since Ufo.env can be determined from UFO_ENV or settings.yml files.
 When ufo is determined from settings it should not called Ufo.env since that in turn calls
 Settings.new.data which can then cause an infinite loop.