Class: Pod::Podfile
- Inherits:
-
Object
show all
- Extended by:
- ENVExecutor
- Defined in:
- lib/swordfish/native/podfile.rb,
lib/swordfish/hmap/podfile_dsl.rb,
lib/swordfish/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'
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
61
62
63
|
# File 'lib/swordfish/native/podfile.rb', line 61
def allow_prerelease?
get_internal_hash_value(ALLOW_PRERELEASE, false) || ENV[ALLOW_PRERELEASE] == 'true'
end
|
#configuration_env ⇒ Object
#old_plugins ⇒ Object
45
|
# File 'lib/swordfish/native/podfile.rb', line 45
alias old_plugins plugins
|
#plugins ⇒ Object
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/swordfish/native/podfile.rb', line 46
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
65
66
67
|
# File 'lib/swordfish/native/podfile.rb', line 65
def use_binaries?
get_internal_hash_value(USE_BINARIES, false) || ENV[USE_BINARIES] == 'true'
end
|
#use_binaries_selector ⇒ Object
57
58
59
|
# File 'lib/swordfish/native/podfile.rb', line 57
def use_binaries_selector
get_internal_hash_value(USE_BINARIES_SELECTOR, nil)
end
|
#use_source_pods ⇒ Object
69
70
71
|
# File 'lib/swordfish/native/podfile.rb', line 69
def use_source_pods
get_internal_hash_value(USE_SOURCE_PODS, []) + String(ENV[USE_SOURCE_PODS]).split('|').uniq
end
|
#use_swordfish_plugin ⇒ Object
77
78
79
|
# File 'lib/swordfish/native/podfile.rb', line 77
def use_swordfish_plugin
plugins.keys.include?('cocoapods-swordfish')
end
|