lib/cocoapods-bb-PodAssistant/command/stable/update.rb in cocoapods-bb-PodAssistant-0.1.9.2 vs lib/cocoapods-bb-PodAssistant/command/stable/update.rb in cocoapods-bb-PodAssistant-0.2.0

- old
+ new

@@ -2,11 +2,11 @@ module Pod class Command class Stable < Command class Update < Stable - self.summary = '[命令同执行`pod update操作`] Update outdated project dependencies and create new ' \ + self.summary = '[命令同执行`pod update操作`,同步更新stable组件标签版本到最新] 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 @@ -25,11 +25,11 @@ ].concat(super) end def initialize(argv) @pods = argv.arguments! - @sync = argv.flag?('sync') + @sync = argv.flag?('sync', true) super end def run puts "[PodAssistant] 开始执行 $ pod stable update".yellow @@ -39,10 +39,11 @@ if @sync puts "[PodAssistant] 需要同步组件信息#{@pods}".green source_manager.merge_stable_data(@pods) end podStartTime = Time.new + update_spec if @pods.any? pods_str = @pods.join(" ") system "pod update #{pods_str}" else system "pod update" @@ -52,9 +53,14 @@ time = podEndTime - podStartTime puts "[PodAssistant] pod update操作总耗时【#{time.to_s.send(:red)}秒】start:#{podStartTime} end:#{podEndTime}".green source_manager.update_local_stable_from_podmodules(@pods) puts "[PodAssistant] `pod stable update` complete!".green + end + def update_spec + system "pod repo update babybus-babybus-ios-specs-babybus-specs" + system "pod repo update babybus-babybus-ios-specs-sourcev2-specs" + system "pod repo update babybus-babybus-ios-specs-dylib-specs" end end end end end