Class: Pod::Command::Privacy
- Inherits:
-
Pod::Command
- Object
- Pod::Command
- Pod::Command::Privacy
- 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
Defined Under Namespace
Classes: Config, Install, Spec
Instance Method Summary collapse
-
#initialize(argv) ⇒ Privacy
constructor
A new instance of Privacy.
- #run ⇒ Object
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
#run ⇒ Object
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 |