Class: Fontist::Update

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/update.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(branch = "main") ⇒ Update

Returns a new instance of Update.



7
8
9
# File 'lib/fontist/update.rb', line 7

def initialize(branch = "main")
  @branch = branch
end

Class Method Details

.callObject



3
4
5
# File 'lib/fontist/update.rb', line 3

def self.call
  new(Fontist.formulas_version).call
end

Instance Method Details

#callObject



11
12
13
14
15
16
# File 'lib/fontist/update.rb', line 11

def call
  update_main_repo
  update_private_repos
ensure
  rebuild_index
end