Class: Fontist::Import::Google::NewFontsFetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/import/google/new_fonts_fetcher.rb

Constant Summary collapse

REPO_PATH =
Fontist.fontist_path.join("google", "fonts")
REPO_URL =
"https://github.com/google/fonts.git".freeze
SKIPLIST_PATH =
File.expand_path("skiplist.yml", __dir__)

Instance Method Summary collapse

Constructor Details

#initialize(logging: false) ⇒ NewFontsFetcher

Returns a new instance of NewFontsFetcher.



12
13
14
# File 'lib/fontist/import/google/new_fonts_fetcher.rb', line 12

def initialize(logging: false)
  @logging = logging
end

Instance Method Details

#callObject



16
17
18
19
# File 'lib/fontist/import/google/new_fonts_fetcher.rb', line 16

def call
  update_repo
  fetch_new_paths
end