Class: Pod::Command::Kz::Install
- Inherits:
-
Pod::Command::Kz
- Object
- Pod::Command
- Pod::Command::Kz
- Pod::Command::Kz::Install
- Defined in:
- lib/cocoapods-kz/command/install.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Install
constructor
A new instance of Install.
- #run ⇒ Object
Methods inherited from Pod::Command::Kz
Constructor Details
#initialize(argv) ⇒ Install
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/cocoapods-kz/command/install.rb', line 29 def initialize(argv) use_code_tag = argv.flag?('code') use_framework_tag = argv.flag?('framework') if use_code_tag && use_framework_tag KZ::KZGlobalHelper.instance.analyze_special_parameters(use_code_tag, use_framework_tag, argv.arguments!) if Pod.match_version?('~> 1.11') KZ::KZGlobalHelper.instance.kz_pod_enable = true KZ::KZGlobalHelper.instance.generate_kz_pod_targets = true end KZ::KZGlobalHelper.instance.debug = true if argv.flag?('debug') KZ::KZGlobalHelper.instance.disable_generate_framework = true if argv.flag?('framework-update') != nil super @additional_args = argv.remainder! end |
Class Method Details
.options ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/cocoapods-kz/command/install.rb', line 16 def self. [ ['--repo-update', 'Force running `pod repo update` before install'], ['--deployment', 'Disallow any changes to the Podfile or the Podfile.lock during installation'], ['--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'], ['--framework', "后面需要跟上pod名(多个pod,使用英文逗号隔开),支持追加*匹配任意内容"], ['--code', "后面需要跟上pod名(多个pod,使用英文逗号隔开),支持追加*匹配任意内容"], ['--debug', "debug模式,会打印调试日志或生成调试文件"], ['--no-framework-update', "build后不再生成frameowrk"] ].concat(super).reject { |(name, _)| name == '--no-repo-update' } end |
Instance Method Details
#run ⇒ Object
46 47 48 49 50 51 |
# File 'lib/cocoapods-kz/command/install.rb', line 46 def run KZ::KZGlobalHelper.instance.prepare install = Pod::Command::Install.new(CLAide::ARGV.new([*@additional_args])) install.validate! install.run end |