Method: Fastlane::Actions::ErbAction.run
- Defined in:
- fastlane/lib/fastlane/actions/erb.rb
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'fastlane/lib/fastlane/actions/erb.rb', line 4 def self.run(params) template = File.read(params[:template]) trim_mode = params[:trim_mode] result = Fastlane::ErbTemplateHelper.render(template, params[:placeholders], trim_mode) File.open(params[:destination], 'w') { |file| file.write(result) } if params[:destination] UI.("Successfully parsed template: '#{params[:template]}' and rendered output to: #{params[:destination]}") if params[:destination] result end |