Class: Pod::Installer::SandboxDirCleaner
- Inherits:
-
Object
- Object
- Pod::Installer::SandboxDirCleaner
- Defined in:
- lib/cocoapods-jxedt/binary/helper/prebuild_installer.rb
Overview
Cleans up the sandbox directory by removing stale target support files and headers.
Instance Method Summary collapse
Instance Method Details
#old_sandbox_project_dir_names ⇒ Object
45 |
# File 'lib/cocoapods-jxedt/binary/helper/prebuild_installer.rb', line 45 alias_method :old_sandbox_project_dir_names, :sandbox_project_dir_names |
#sandbox_project_dir_names ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/cocoapods-jxedt/binary/helper/prebuild_installer.rb', line 46 def sandbox_project_dir_names project_dir_names = old_sandbox_project_dir_names if sandbox.is_a?(Pod::JxedtPrebuildSandbox) # 如果允许生成Pods-Index.xcodeproj,排除这个文件 project_dir_names.reject! { |d| d.basename.to_s =~ /#{sandbox.index_project_name}$/ } if Jxedt.config.create_index_project? end project_dir_names end |