Class: PodAlexandria::UserOptions
- Inherits:
-
Object
- Object
- PodAlexandria::UserOptions
- Defined in:
- lib/cocoapods-alexandria/helper/user_options.rb
Instance Attribute Summary collapse
-
#do_not_embed_dependencies_in_targets ⇒ Object
readonly
Returns the value of attribute do_not_embed_dependencies_in_targets.
-
#environment_configs ⇒ Object
readonly
Returns the value of attribute environment_configs.
-
#force_bitcode ⇒ Object
readonly
Returns the value of attribute force_bitcode.
-
#xcodegen_dependencies_file ⇒ Object
readonly
Returns the value of attribute xcodegen_dependencies_file.
Instance Method Summary collapse
- #allow_embed_dependencies_for(target) ⇒ Object
- #environment_configs_for(target) ⇒ Object
-
#initialize(installer_context, user_options) ⇒ UserOptions
constructor
A new instance of UserOptions.
Constructor Details
#initialize(installer_context, user_options) ⇒ UserOptions
Returns a new instance of UserOptions.
8 9 10 11 12 13 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 8 def initialize(installer_context, ) @environment_configs = .fetch('environment_configs', default_configurations(installer_context)) @force_bitcode = .fetch('force_bitcode', true) @xcodegen_dependencies_file = .fetch('xcodegen_dependencies_file', 'projectDependencies.yml') @do_not_embed_dependencies_in_targets = .fetch('do_not_embed_dependencies_in_targets', []) end |
Instance Attribute Details
#do_not_embed_dependencies_in_targets ⇒ Object (readonly)
Returns the value of attribute do_not_embed_dependencies_in_targets.
6 7 8 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 6 def @do_not_embed_dependencies_in_targets end |
#environment_configs ⇒ Object (readonly)
Returns the value of attribute environment_configs.
3 4 5 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 3 def environment_configs @environment_configs end |
#force_bitcode ⇒ Object (readonly)
Returns the value of attribute force_bitcode.
4 5 6 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 4 def force_bitcode @force_bitcode end |
#xcodegen_dependencies_file ⇒ Object (readonly)
Returns the value of attribute xcodegen_dependencies_file.
5 6 7 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 5 def xcodegen_dependencies_file @xcodegen_dependencies_file end |
Instance Method Details
#allow_embed_dependencies_for(target) ⇒ Object
19 20 21 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 19 def (target) !.include?(normalize_target(target)) end |
#environment_configs_for(target) ⇒ Object
15 16 17 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 15 def environment_configs_for(target) environment_configs[normalize_target(target)] end |