Sha256: 7b23e0bec60cd2623b7346c7d5850416166cabd302c95f40d3cd3ed262044017
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
require_relative "locations" module Fontist module Manifest class Install < Locations def initialize(manifest, confirmation: "no") @manifest = manifest @confirmation = confirmation end private def file_paths(font, style) paths = super return paths unless paths["paths"].empty? install_font(font) super end def install_font(font) Fontist::Font.try_install(font, confirmation: @confirmation) rescue Fontist::Errors::LicensingError [] # try to install other fonts end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fontist-1.7.3 | lib/fontist/manifest/install.rb |