def install_unit(unit, type, quiet = false)
      success = unit.install
      logger.info do
        "Installed #{type_name(type)}: #{unit.source} => #{unit.destination_path}"
      end unless quiet || !success
      return true

    rescue Unit::InstallFailed => e
      logger.fatal { "Halting install! Install attempt failed for #{type_name(type)}: #{e}" }
      return false
    end
def install_unit(unit, type, quiet = false)
      success = unit.install
      logger.info do
        "Installed #{type_name(type)}: #{unit.source} => #{unit.destination_path}"
      end unless quiet || !success
      return true

    rescue Unit::InstallFailed => e
      logger.fatal { "Halting install! Install attempt failed for #{type_name(type)}: #{e}" }
      return false
    end
Installs a unit.
 @param unit [Unit] the unit to install
 @param type [Symbol] the unit type
 @param quiet [Boolean] suppress some {#logger} output
 @return [Boolean] if unit was installed