Module: Pod::Podfile::ENVExecutor
- Included in:
- Pod::Podfile
- Defined in:
- lib/cocoapods-bb-bin/native/podfile_env.rb
Instance Method Summary collapse
- #execute_with_allow_prerelease(allow_prerelease, &block) ⇒ Object
- #execute_with_bin_plugin(&block) ⇒ Object
- #execute_with_key(key, value_returner) ⇒ Object
- #execute_with_use_binaries(use_binaries, &block) ⇒ Object
Instance Method Details
#execute_with_allow_prerelease(allow_prerelease, &block) ⇒ Object
17 18 19 |
# File 'lib/cocoapods-bb-bin/native/podfile_env.rb', line 17 def execute_with_allow_prerelease(allow_prerelease, &block) execute_with_key(ALLOW_PRERELEASE, -> { allow_prerelease ? 'true' : 'false' }, &block) end |
#execute_with_bin_plugin(&block) ⇒ Object
13 14 15 |
# File 'lib/cocoapods-bb-bin/native/podfile_env.rb', line 13 def execute_with_bin_plugin(&block) execute_with_key(USE_PLUGINS, -> { 'cocoapods-bb-bin' }, &block) end |
#execute_with_key(key, value_returner) ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/cocoapods-bb-bin/native/podfile_env.rb', line 25 def execute_with_key(key, value_returner) origin_value = ENV[key] ENV[key] = value_returner.call yield if block_given? ENV[key] = origin_value end |
#execute_with_use_binaries(use_binaries, &block) ⇒ Object
21 22 23 |
# File 'lib/cocoapods-bb-bin/native/podfile_env.rb', line 21 def execute_with_use_binaries(use_binaries, &block) execute_with_key(USE_BINARIES, -> { use_binaries ? 'true' : 'false' }, &block) end |