require 'cocoapods-bb-PodAssistant/config/source_manager' require 'cocoapods-bb-PodAssistant/helpers/stable_env_helper' module Pod class Command class Stable < Command class Init < Stable self.summary = '[初始化项目yml配置] Generate a Stable yml config file from a Podfile.lock' self.description = <<-DESC 通过项目`Podfile.lock`文件,生成`stable_specs_lock.yml`配置文件 DESC def initialize(argv) super end def run # verify_podfile_exists! env = BB::StableEnv.new() if env.verify_stable_env_exists == true env.system_clone_stable_git # 自动拉取远端git仓库数据 source_manager = BB::SourceManager.new() puts "[PodAssistant] 开始配置生成当前项目yml文件".yellow # 生成本地yml配置 source_manager.generate_localStable puts "[PodAssistant] `pod stable init` complete!".green else puts "[PodAssistant] ❌工程没有配置stable环境".red end end end end end end