Sha256: 54d50cced258fc4cb251e3b3a0a39b8664997c797acdd7f8004b5ffed4078c66
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
require_relative "locations" module Fontist module Manifest class Install < Locations def initialize(manifest, confirmation: "no") @manifest = manifest @confirmation = confirmation end def self.call(manifest, confirmation: "no") new(manifest, confirmation: confirmation).call 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fontist-1.7.2 | lib/fontist/manifest/install.rb |
fontist-1.7.1 | lib/fontist/manifest/install.rb |
fontist-1.7.0 | lib/fontist/manifest/install.rb |