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)
  uploader = GemUploader.new(config.geminabox_url)
  counts, failures = run_sync(gems_to_sync, config, uploader)
  report_results(counts, failures, gems_to_sync.size)
end