Class: Pod::Command::Privacy::Install
- Inherits:
-
Pod::Command::Privacy
- Object
- Pod::Command
- Pod::Command::Privacy
- Pod::Command::Privacy::Install
- Defined in:
- lib/cocoapods-privacy/command/privacy/install.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Install
constructor
A new instance of Install.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Install
Returns a new instance of Install.
21 22 23 24 25 26 27 28 29 |
# File 'lib/cocoapods-privacy/command/privacy/install.rb', line 21 def initialize(argv) @folds = argv.option('folds', '').split(',') is_query = argv.flag?('query',false) is_all = argv.flag?('all',false) instance = Pod::Config.instance instance.is_query = is_query instance.is_all = is_all super end |
Class Method Details
.options ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/cocoapods-privacy/command/privacy/install.rb', line 13 def self. [ ["--folds=folds", '传入自定义搜索文件夹,多个文件目录使用“,”分割'], ['--query', '仅查询隐私api,不做写入'], ['--all', '忽略黑名单和白名单限制,查询工程所有组件'], ].concat(super) end |
Instance Method Details
#run ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/cocoapods-privacy/command/privacy/install.rb', line 31 def run verify_podfile_exists! installer = installer_for_config installer.repo_update = false installer.update = false installer.deployment = false installer.clean_install = false installer.privacy_analysis(@folds) end |