Sha256: 722bb0f2b57c1a99614cb7bd4387c99c9fdd73d131be2f92c6c66c2bdb35fd97

Contents?: true

Size: 550 Bytes

Versions: 7

Compression:

Stored size: 550 Bytes

Contents

Gemirro::CLI.options.command 'update' do
  banner 'Usage: gemirro update [OPTIONS]'
  description 'Updates the list of Gems'
  separator "\nOptions:\n"

  on :c=, :config=, 'Path to the configuration file'
  on :l=, :log_level=, 'Set logger level'

  run do |opts, _args|
    Gemirro::CLI.load_configuration(opts[:c])
    config.logger_level = opts[:l] if opts[:l]

    source = Gemirro.configuration.source
    versions = Gemirro::VersionsFetcher.new(source).fetch
    gems     = Gemirro::GemsFetcher.new(source, versions)

    gems.fetch
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gemirro-1.2.0 lib/gemirro/cli/update.rb
gemirro-1.1.1 lib/gemirro/cli/update.rb
gemirro-1.1.0 lib/gemirro/cli/update.rb
gemirro-1.0.0 lib/gemirro/cli/update.rb
gemirro-0.16.0 lib/gemirro/cli/update.rb
gemirro-0.15.0 lib/gemirro/cli/update.rb
gemirro-0.14.0 lib/gemirro/cli/update.rb