Class: Pod::Podfile
- Inherits:
-
Object
show all
- Extended by:
- ENVExecutor
- Defined in:
- lib/cocoapods-tdf-bin/native/podfile.rb,
lib/cocoapods-tdf-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_ENV =
'configuration_env'
- BATCH_POD_LOCAL =
'batch_pod_local'
- BATCH_POD_REMOTE =
'batch_pod_remote'
Instance Method Summary
collapse
execute_with_allow_prerelease, execute_with_bin_plugin, execute_with_key, execute_with_use_binaries
Instance Method Details
#allow_prerelease? ⇒ Boolean
124
125
126
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 124
def allow_prerelease?
get_internal_hash_value(ALLOW_PRERELEASE, false) || ENV[ALLOW_PRERELEASE] == 'true'
end
|
#configuration_env ⇒ Object
144
145
146
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 144
def configuration_env
get_internal_hash_value(CONFIGURATION_ENV, "dev") || ENV[CONFIGURATION_ENV] == "dev"
end
|
#get_batch_local_pods ⇒ Object
132
133
134
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 132
def get_batch_local_pods
get_internal_hash_value(BATCH_POD_LOCAL)
end
|
#get_batch_remote_pods ⇒ Object
136
137
138
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 136
def get_batch_remote_pods
get_internal_hash_value(BATCH_POD_REMOTE)
end
|
#old_plugins ⇒ Object
108
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 108
alias old_plugins plugins
|
#plugins ⇒ Object
109
110
111
112
113
114
115
116
117
118
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 109
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
128
129
130
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 128
def use_binaries?
get_internal_hash_value(USE_BINARIES, false) || ENV[USE_BINARIES] == 'true'
end
|
#use_binaries_selector ⇒ Object
120
121
122
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 120
def use_binaries_selector
get_internal_hash_value(USE_BINARIES_SELECTOR, nil)
end
|
#use_source_pods ⇒ Object
140
141
142
|
# File 'lib/cocoapods-tdf-bin/native/podfile.rb', line 140
def use_source_pods
get_internal_hash_value(USE_SOURCE_PODS, []) + String(ENV[USE_SOURCE_PODS]).split('|').uniq
end
|