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, limit: nil) ⇒ NewFontsFetcher

Returns a new instance of NewFontsFetcher.



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

def initialize(logging: false, limit: nil)
  @logging = logging
  @limit = limit
end

Instance Method Details

#callObject



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

def call
  update_repo
  fetch_new_paths
end