Method: Pod::Podfile::ENVExecutor#execute_with_key

Defined in:
lib/cocoapods-lhj-bin/native/podfile_env.rb

#execute_with_key(key, value_returner) ⇒ Object


25
26
27
28
29
30
31
32
# File 'lib/cocoapods-lhj-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