Class: Pod::Podfile

Inherits:
Object
  • Object
show all
Extended by:
ENVExecutor
Defined in:
lib/cocoapods-pahealth-bin/native/podfile.rb,
lib/cocoapods-pahealth-bin/native/podfile_env.rb

Defined Under Namespace

Modules: DSL, ENVExecutor

Constant Summary collapse

USE_BINARIES =
'use_binaries'
USE_SOURCE_PODS =
'use_source_pods'
USE_BINARIES_SELECTOR =
'use_binaries_selector'
ALLOW_PRERELEASE =
'allow_prerelease'
USE_PLUGINS =
'use_plugins'
CONFIGURATION_DEPENDENCE =
'configuration_dependence'

Instance Method Summary collapse

Methods included from ENVExecutor

execute_with_allow_prerelease, execute_with_bin_plugin, execute_with_key, execute_with_use_binaries

Instance Method Details

#allow_prerelease?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/cocoapods-pahealth-bin/native/podfile.rb', line 51

def allow_prerelease?
  get_internal_hash_value(ALLOW_PRERELEASE, false) || ENV[ALLOW_PRERELEASE] == 'true'
end

#configuration_dependenceObject



63
64
65
# File 'lib/cocoapods-pahealth-bin/native/podfile.rb', line 63

def configuration_dependence
  get_internal_hash_value(CONFIGURATION_DEPENDENCE, "uat") ||  ENV[CONFIGURATION_DEPENDENCE] == "uat"
end

#old_pluginsObject



35
# File 'lib/cocoapods-pahealth-bin/native/podfile.rb', line 35

alias old_plugins plugins

#pluginsObject



36
37
38
39
40
41
42
43
44
45
# File 'lib/cocoapods-pahealth-bin/native/podfile.rb', line 36

def plugins
  if ENV[USE_PLUGINS]
    env_plugins = ENV[USE_PLUGINS].split(',').each_with_object({}) do |name, result|
      result[name] = {}
    end
    env_plugins.merge!(old_plugins)
  else
    old_plugins
  end
end

#use_binaries?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/cocoapods-pahealth-bin/native/podfile.rb', line 55

def use_binaries?
  get_internal_hash_value(USE_BINARIES, false) || ENV[USE_BINARIES] == 'true'
end

#use_binaries_selectorObject



47
48
49
# File 'lib/cocoapods-pahealth-bin/native/podfile.rb', line 47

def use_binaries_selector
  get_internal_hash_value(USE_BINARIES_SELECTOR, nil)
end

#use_source_podsObject



59
60
61
# File 'lib/cocoapods-pahealth-bin/native/podfile.rb', line 59

def use_source_pods
  get_internal_hash_value(USE_SOURCE_PODS, []) + String(ENV[USE_SOURCE_PODS]).split('|').uniq
end