Class: Pod::Command::Stable::Init
- Inherits:
-
Pod::Command::Stable
- Object
- Pod::Command
- Pod::Command::Stable
- Pod::Command::Stable::Init
- Defined in:
- lib/cocoapods-bb-PodAssistant/command/stable/init.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Init
constructor
A new instance of Init.
- #run ⇒ Object
Methods inherited from Pod::Command::Stable
Constructor Details
#initialize(argv) ⇒ Init
Returns a new instance of Init.
15 16 17 |
# File 'lib/cocoapods-bb-PodAssistant/command/stable/init.rb', line 15 def initialize(argv) super end |
Instance Method Details
#run ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cocoapods-bb-PodAssistant/command/stable/init.rb', line 19 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 |