Class: Gemkeeper::CLI::Commands::Sync

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/gemkeeper/cli/commands/sync.rb

Instance Method Summary collapse

Instance Method Details

#call(gem_name: nil, **options) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/gemkeeper/cli/commands/sync.rb', line 12

def call(gem_name: nil, **options)
  config = Configuration.load(options[:config])
  gems_to_sync = select_gems(config, gem_name)
  syncer = GemSyncer.new(config, GemUploader.new(config.geminabox_url), manifest: ManifestReader.load)
  counts, failures = run_sync(gems_to_sync, syncer)
  report_results(counts, failures, gems_to_sync.size)
end