Class: Pod::Generator::EmbedFrameworksScript
- Inherits:
-
Object
- Object
- Pod::Generator::EmbedFrameworksScript
- Defined in:
- lib/cocoapods/generator/embed_frameworks_script.rb
Instance Attribute Summary collapse
-
#frameworks_by_config ⇒ Hash{String => Array<String>}
readonly
Multiple lists of frameworks per configuration.
Instance Method Summary collapse
-
#initialize(frameworks_by_config) ⇒ EmbedFrameworksScript
constructor
A new instance of EmbedFrameworksScript.
-
#save_as(pathname) ⇒ void
Saves the resource script to the given pathname.
Constructor Details
#initialize(frameworks_by_config) ⇒ EmbedFrameworksScript
Returns a new instance of EmbedFrameworksScript.
12 13 14 |
# File 'lib/cocoapods/generator/embed_frameworks_script.rb', line 12 def initialize(frameworks_by_config) @frameworks_by_config = frameworks_by_config end |
Instance Attribute Details
#frameworks_by_config ⇒ Hash{String => Array<String>} (readonly)
Returns Multiple lists of frameworks per configuration.
7 8 9 |
# File 'lib/cocoapods/generator/embed_frameworks_script.rb', line 7 def frameworks_by_config @frameworks_by_config end |
Instance Method Details
#save_as(pathname) ⇒ void
This method returns an undefined value.
Saves the resource script to the given pathname.
23 24 25 26 27 28 |
# File 'lib/cocoapods/generator/embed_frameworks_script.rb', line 23 def save_as(pathname) pathname.open('w') do |file| file.puts(script) end File.chmod(0755, pathname.to_s) end |