Sha256: 5bc5063ce414ca93280c60bd33f1b5a977e4ebe5a82b7de4a0a8d42baeeb8d67
Contents?: true
Size: 1 KB
Versions: 5
Compression:
Stored size: 1 KB
Contents
require 'parallel' module Pod class Command class Swordfish < Command class Repo < Swordfish class Update < Repo self.summary = '更新私有源' self.arguments = [ CLAide::Argument.new('NAME', false) ] def self.options [ ['--all', '更新所有私有源,默认只更新二进制相关私有源'] ].concat(super) end def initialize(argv) @all = argv.flag?('all') @name = argv.shift_argument super end def run show_output = !config.silent? if @name || @all config.sources_manager.update(@name, show_output) else Parallel.each(valid_sources, in_threads: 4) do |source| UI.puts "更新私有源仓库 #{source.to_s}".yellow source.update(show_output) end end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems