Class: Fontist::ManifestResponseFont
- Inherits:
-
ManifestFont
- Object
- Lutaml::Model::Serializable
- ManifestFont
- Fontist::ManifestResponseFont
- Defined in:
- lib/fontist/manifest_response.rb
Instance Method Summary collapse
Methods inherited from ManifestFont
#find_font_with_name, #group_paths, #group_paths_empty?, #style, #style_paths, #to_response
Instance Method Details
#install(confirmation: "no", hide_licenses: false, no_progress: false) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/fontist/manifest_response.rb', line 24 def install(confirmation: "no", hide_licenses: false, no_progress: false) styles.each do |style| if style.paths.nil? # If no paths are found, notify the user but continue with the # installation Fontist.ui.error("Font #{name} with style #{style} not found, skipping installation.") end end Fontist::Font.install( name, force: false, confirmation: confirmation, hide_licenses: hide_licenses, no_progress: no_progress, ) end |