Module: PodPrebuild
- Defined in:
- lib/cocoapods-binary-artifactory-cache/prebuild_output/output.rb,
lib/command/config.rb,
lib/command/helper/zip.rb,
lib/command/executor/base.rb,
lib/command/executor/fetcher.rb,
lib/command/executor/prebuilder.rb,
lib/command/executor/visualizer.rb,
lib/cocoapods-binary-artifactory-cache/env.rb,
lib/cocoapods-binary-artifactory-cache/helper/json.rb,
lib/cocoapods-binary-artifactory-cache/state_store.rb,
lib/cocoapods-binary-artifactory-cache/diagnosis/base.rb,
lib/cocoapods-binary-artifactory-cache/cache/validator.rb,
lib/cocoapods-binary-artifactory-cache/helper/lockfile.rb,
lib/cocoapods-binary-artifactory-cache/hooks/pre_install.rb,
lib/cocoapods-binary-artifactory-cache/hooks/post_install.rb,
lib/cocoapods-binary-artifactory-cache/diagnosis/diagnosis.rb,
lib/cocoapods-binary-artifactory-cache/cache/validator_base.rb,
lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb,
lib/cocoapods-binary-artifactory-cache/cache/validation_result.rb,
lib/cocoapods-binary-artifactory-cache/pod-binary/helper/build.rb,
lib/cocoapods-binary-artifactory-cache/pod-rome/xcodebuild_raw.rb,
lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb,
lib/cocoapods-binary-artifactory-cache/prebuild_output/metadata.rb,
lib/cocoapods-binary-artifactory-cache/cache/validator_exclusion.rb,
lib/cocoapods-binary-artifactory-cache/cache/validator_accumulated.rb,
lib/cocoapods-binary-artifactory-cache/pod-rome/xcodebuild_command.rb,
lib/cocoapods-binary-artifactory-cache/cache/validator_non_dev_pods.rb,
lib/cocoapods-binary-artifactory-cache/cache/validator_with_podfile.rb,
lib/cocoapods-binary-artifactory-cache/cache/validator_dependencies_graph.rb
Overview
Copyright 2019 Grabtaxi Holdings PTE LTE (GRAB), All rights reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
Defined Under Namespace
Modules: ZipUtils
Classes: AccumulatedCacheValidator, BaseCacheValidator, BaseDiagnosis, CacheFetcher, CachePrebuilder, CacheValidationResult, CacheValidator, CommandExecutor, Config, DependenciesGraphCacheValidator, DevPodsCacheValidator, Diagnosis, Env, ExclusionCacheValidator, IntegrationDiagnosis, JSONFile, Lockfile, Metadata, NonDevPodsCacheValidator, Output, PodfileChangesCacheValidator, PostInstallHook, PreInstallHook, State, Visualizer, XcodebuildCommand
Class Method Summary
collapse
Class Method Details
.build(options) ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/cocoapods-binary-artifactory-cache/pod-binary/helper/build.rb', line 5
def self.build(options)
targets = options[:targets] || []
return if targets.empty?
options[:sandbox] = Pod::Sandbox.new(Pathname(options[:sandbox])) unless options[:sandbox].is_a?(Pod::Sandbox)
options[:build_dir] = build_dir(options[:sandbox].root)
case targets[0].platform.name
when :ios, :tvos, :watchos
PodPrebuild::XcodebuildCommand.new(options).run
when :osx
xcodebuild(
sandbox: options[:sandbox],
targets: targets,
configuration: options[:configuration],
sdk: "macosx",
args: options[:args]
)
else
raise "Unsupported platform for '#{targets[0].name}': '#{targets[0].platform.name}'"
end
raise "The build directory was not found in the expected location" unless options[:build_dir].directory?
end
|
.build_dir(sandbox_root) ⇒ Object
34
35
36
|
# File 'lib/cocoapods-binary-artifactory-cache/pod-binary/helper/build.rb', line 34
def self.build_dir(sandbox_root)
sandbox_root.parent + "build"
end
|
.remove_build_dir(sandbox_root) ⇒ Object
29
30
31
32
|
# File 'lib/cocoapods-binary-artifactory-cache/pod-binary/helper/build.rb', line 29
def self.remove_build_dir(sandbox_root)
path = build_dir(sandbox_root)
path.rmtree if path.exist?
end
|
.state ⇒ Object
2
3
4
|
# File 'lib/cocoapods-binary-artifactory-cache/state_store.rb', line 2
def self.state
@state ||= State.new
end
|