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

- old
+ new

@@ -19,27 +19,28 @@ CLAide::Argument.new('POD_NAMES', false, true), ] def self.options [ - ['--sync', '立即同步远端yml配置,更新组件信息'], + ['--force', '强制更新组件,突破stable版本限制'], ].concat(super) end def initialize(argv) @pods = argv.arguments! @sync = argv.flag?('sync', true) + @force = argv.flag?('force', true) super end def run puts "[PodAssistant] 开始执行 $ pod stable update".yellow # system "git checkout Podfile.lock" source_manager = BB::SourceManager.new() # verify_podfile_exists! # 系统提供api验证podfile是否ok if @sync puts "[PodAssistant] 需要同步组件信息#{@pods}".green - source_manager.merge_stable_data(@pods) + source_manager.merge_stable_data(@pods, @force) end podStartTime = Time.new update_spec if @pods.any? pods_str = @pods.join(" ")