Sha256: 6484e9d53cdbfb9122a4c05536f177302324df1dbfe8e58c955abf567aed4f43
Contents?: true
Size: 1.63 KB
Versions: 9
Compression:
Stored size: 1.63 KB
Contents
require 'claide' module LgPodPlugin class Command class Update < Command REQUIRED_ATTRS ||= %i[log repo_update].freeze attr_accessor(*REQUIRED_ATTRS) self.summary = 'Update outdated project dependencies and create new ' \ 'Podfile.lock' self.description = <<-DESC Updates the Pods identified by the specified `POD_NAMES`, which is a space-delimited list of pod names. If no `POD_NAMES` are specified, it updates all the Pods, ignoring the contents of the Podfile.lock. This command is reserved for the update of dependencies; pod install should be used to install changes to the Podfile. DESC def self.options [ ["--sources=#{Pod::TrunkSource::TRUNK_REPO_URL}", 'The sources from which to update dependent pods. ' \ 'Multiple sources must be comma-delimited'], ['--exclude-pods=podName', 'Pods to exclude during update. Multiple pods must be comma-delimited'], ['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' \ 'applies to projects that have enabled incremental installation'], ].concat(super) end def initialize(argv) self.log = argv.flag?('verbose') self.repo_update = argv.flag?('repo-update') super end def run begin_time = Time.now.to_i LgPodPlugin::Main.run("update", { :verbose => self.log, :repo_update => self.repo_update}) end_time = Time.now.to_i LgPodPlugin.log_blue "`lg update`安装所需时间: #{end_time - begin_time}" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems