Module: Pod::SPM::MacroConfigMixin

Includes:
Config::Mixin, PathMixn
Included in:
MacroFetcher, MacroPrebuilder
Defined in:
lib/cocoapods-spm/macro/config.rb

Instance Method Summary collapse

Methods included from PathMixn

#prepare_dir

Methods included from Config::SPMConfigMixin

#local_macro_pod?, #local_macro_pod_dir, #macro_pods, #spm_config

Methods included from Config::PodConfigMixin

#pod_config

Methods included from Config::ProjectConfigMixin

#project_config

Instance Method Details

#macro_dirObject



11
12
13
# File 'lib/cocoapods-spm/macro/config.rb', line 11

def macro_dir
  @macro_dir ||= spm_config.macro_root_dir / name
end

#macro_downloaded_dirObject



7
8
9
# File 'lib/cocoapods-spm/macro/config.rb', line 7

def macro_downloaded_dir
  spm_config.macro_downloaded_root_dir / name
end

#macro_prebuilt_dirObject



19
20
21
# File 'lib/cocoapods-spm/macro/config.rb', line 19

def macro_prebuilt_dir
  spm_config.macro_prebuilt_root_dir / name
end

#macro_scratch_dirObject



15
16
17
# File 'lib/cocoapods-spm/macro/config.rb', line 15

def macro_scratch_dir
  @macro_scratch_dir ||= prepare_dir(spm_config.macro_root_dir / ".build")
end

#metadataObject



27
28
29
# File 'lib/cocoapods-spm/macro/config.rb', line 27

def 
  @metadata ||= MacroMetadata.for_pod(name)
end

#metadata_pathObject



23
24
25
# File 'lib/cocoapods-spm/macro/config.rb', line 23

def 
  macro_dir / "metadata.json"
end