Class: Pod::Command::Install
- Inherits:
-
Pod::Command
- Object
- Pod::Command
- Pod::Command::Install
- Defined in:
- lib/cocoapods-privacy/command/install.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Install
constructor
A new instance of Install.
- #privacy_origin_initialize ⇒ Object
Constructor Details
#initialize(argv) ⇒ Install
Returns a new instance of Install.
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/cocoapods-privacy/command/install.rb', line 28 def initialize(argv) privacy_folds = argv.option('privacy-folds', '').split(',') is_privacy = argv.flag?('privacy',false) is_query = argv.flag?('query',false) is_all = argv.flag?('all',false) privacy_origin_initialize(argv) instance = Pod::Config.instance instance.privacy_folds = privacy_folds instance.is_privacy = is_privacy instance.is_query = is_query instance.is_all = is_all end |
Class Method Details
.options ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/cocoapods-privacy/command/install.rb', line 17 def [ ['--privacy', '使用该参数,会自动生成并更新PrivacyInfo.xcprivacy'], ['--privacy-folds=folds', '指定文件夹检索,多个文件夹使用逗号","分割'], ['--query', '仅查询隐私api,不做写入'], ['--all', '忽略黑名单和白名单限制,查询工程所有组件'], ].concat() end |
.origin_options ⇒ Object
16 |
# File 'lib/cocoapods-privacy/command/install.rb', line 16 alias_method :origin_options, :options |
Instance Method Details
#privacy_origin_initialize ⇒ Object
27 |
# File 'lib/cocoapods-privacy/command/install.rb', line 27 alias_method :privacy_origin_initialize, :initialize |