Class: Pod::XCConfig::Hook
- Inherits:
-
Object
- Object
- Pod::XCConfig::Hook
- Defined in:
- lib/cocoapods-xcconfig-hooks/main.rb
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(context) ⇒ Hook
constructor
A new instance of Hook.
- #run ⇒ Object
- #sandbox ⇒ Object
Constructor Details
#initialize(context) ⇒ Hook
Returns a new instance of Hook.
8 9 10 |
# File 'lib/cocoapods-xcconfig-hooks/main.rb', line 8 def initialize(context) @context = context end |
Instance Method Details
#config ⇒ Object
16 17 18 |
# File 'lib/cocoapods-xcconfig-hooks/main.rb', line 16 def config Config.instance end |
#run ⇒ Object
20 21 22 23 24 25 |
# File 'lib/cocoapods-xcconfig-hooks/main.rb', line 20 def run sandbox.target_support_files_root.glob("*/*.xcconfig") do |path| prepend_includes(path) end create_symlink_to_hook_dir end |
#sandbox ⇒ Object
12 13 14 |
# File 'lib/cocoapods-xcconfig-hooks/main.rb', line 12 def sandbox @context.sandbox end |