Module: Fastlane::PageGenerator
- Defined in:
- lib/fastlane/plugin/polidea/helper/page_generator.rb
Constant Summary collapse
- PLACEHOLDER_URL =
"https://s3.eu-central-1.amazonaws.com/fota.polidea.com/mails/images/icon-placeholder.jpg"
Class Method Summary collapse
Class Method Details
.installation_page(config) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/fastlane/plugin/polidea/helper/page_generator.rb', line 30 def self.installation_page(config) UI.("Generating public installation page...") eth = Fastlane::ErbTemplateHelper html_template = eth.load_from_path( File.("templates/install.erb", Polidea.root) ) eth.render(html_template, { url: config[:url], app_version: config[:app_version], build_number: config[:build_number], app_name: config[:app_name], app_icon: app_icon_or_placholder(config[:app_icon]), release_notes: parse_release_notes(config[:release_notes]) }) end |
.mail(config) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fastlane/plugin/polidea/helper/page_generator.rb', line 7 def self.mail(config) UI.("Generating e-mail...") eth = Fastlane::ErbTemplateHelper html_template = eth.load_from_path( File.("templates/mail.erb", Polidea.root) ) eth.render(html_template, { author: config[:author], last_commit: config[:last_commit], is_android: config[:is_android], app_icon: mail_app_icon_or_placholder(config[:app_icon]), app_name: config[:app_name], app_version: config[:app_version], build_number: config[:build_number], installation_link: config[:installation_link], release_notes: parse_release_notes(config[:release_notes]), platform: config[:platform], release_date: config[:release_date], binary_size: config[:binary_size], qr_code: "cid:#{config[:qr_code]}" }) end |