Class: Pod::Command::Privacy

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

Direct Known Subclasses

Config, Install, Spec

Defined Under Namespace

Classes: Config, Install, Spec

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Privacy

Returns a new instance of Privacy.



5
6
7
# File 'lib/cocoapods-privacy/command/privacy.rb', line 5

def initialize(argv)
  super
end

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
# File 'lib/cocoapods-privacy/command/privacy.rb', line 9

def run
  if PrivacyUtils.isMainProject
    puts "检测到#{PrivacyUtils.project_path || ""}工程文件, 请使用 pod privacy install 对工程进行隐私清单创建和自动检索"
  elsif PrivacyUtils.podspec_file_path
    puts "检测到#{PrivacyUtils.podspec_file_path || ""} 组件, 请使用 pod privacy spec 对组件进行隐私清单创建和自动检索"
  else
    puts "未检测到工程或podspec 文件, 请切换到工程或podspec文件目录下再次执行命令"
  end
end