class Fontist::Manifest::Install
Public Class Methods
new(manifest, confirmation: "no", hide_licenses: false, no_progress: false)
click to toggle source
Calls superclass method
# File lib/fontist/manifest/install.rb, line 6 def initialize(manifest, confirmation: "no", hide_licenses: false, no_progress: false) super(manifest) @confirmation = confirmation @hide_licenses = hide_licenses @no_progress = no_progress end
Private Instance Methods
file_paths(font, style)
click to toggle source
# File lib/fontist/manifest/install.rb, line 15 def file_paths(font, style) paths = find_font_with_name(font, style) return paths unless paths.nil? install_font(font) find_font_with_name(font, style) end
install_font(font)
click to toggle source
# File lib/fontist/manifest/install.rb, line 24 def install_font(font) Fontist::Font.install( font, force: true, confirmation: @confirmation, hide_licenses: @hide_licenses, no_progress: @no_progress ) end