Sha256: 4a094bf534ab65d6122796631ddfafe26f160cf89647b7cd0acd3b6f5b957a12
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
module Pod class Podfile 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' CONFIGURATION = 'configuration' module ENVExecutor def execute_with_bin_plugin(&block) execute_with_key(USE_PLUGINS, -> { 'cocoapods-meitu-bin' }, &block) end def execute_with_allow_prerelease(allow_prerelease, &block) execute_with_key(ALLOW_PRERELEASE, -> { allow_prerelease ? 'true' : 'false' }, &block) end def execute_with_use_binaries(use_binaries, &block) execute_with_key(USE_BINARIES, -> { use_binaries ? 'true' : 'false' }, &block) end 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 end extend ENVExecutor end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-meitu-bin-1.0.0 | lib/cocoapods-meitu-bin/native/podfile_env.rb |