Method: IOS::ProjectManipulator#createSwiftgen
- Defined in:
- lib/ios/module/setup/ProjectManipulator.rb
#createSwiftgen ⇒ Object
218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/ios/module/setup/ProjectManipulator.rb', line 218 def createSwiftgen @configurator.printMessage("Criando arquivo swiftgen") fileName = File.join(@module_root_path, "swiftgen.yml") FileUtils.cp( File.join(@configurator.template_path, "swiftgen.yml"), fileName ) text = File.read(fileName) text.gsub!("${POD_NAME}", @configurator.pod_name) File.open(fileName, "w") { |file| file.puts text} @configurator.printDone end |