Class: Pod::Command::Privacy::Install

Inherits:
Pod::Command::Privacy show all
Defined in:
lib/cocoapods-privacy/command/privacy/install.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Install

Returns a new instance of Install.



19
20
21
22
# File 'lib/cocoapods-privacy/command/privacy/install.rb', line 19

def initialize(argv)
    @folds = argv.option('folds', '').split(',')
    super
end

Class Method Details

.optionsObject



13
14
15
16
17
# File 'lib/cocoapods-privacy/command/privacy/install.rb', line 13

def self.options
    [
      ["--folds=folds", '传入自定义搜索文件夹,多个文件目录使用“,”分割'],
    ].concat(super)
end

Instance Method Details

#runObject



24
25
26
27
28
29
30
31
32
33
# File 'lib/cocoapods-privacy/command/privacy/install.rb', line 24

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