Sha256: c41e5c762a49d397d74a0de711e2c520480fba811af90674b646596f9a628729
Contents?: true
Size: 1.08 KB
Versions: 8
Compression:
Stored size: 1.08 KB
Contents
module Fastlane module Helper class AwsS3Helper # class methods that you define here become available in your action # as `Helper::S3Helper.your_method` # def self.show_message UI.message("Hello from the s3 plugin helper!") end # # Taken from https://github.com/fastlane/fastlane/blob/9c0494ef5e7d71afc51c73fe0b141b02e8991d9c/fastlane/lib/fastlane/erb_template_helper.rb # Because I need to load from my plugin gem (not main fastlane gem) # require "erb" def self.load(template_name) path = "#{Helper.gem_path('fastlane-plugin-aws_s3')}/lib/assets/#{template_name}.erb" puts "path #{path}" load_from_path(path) end def self.load_from_path(template_filepath) unless File.exist?(template_filepath) UI.user_error!("Could not find Template at path '#{template_filepath}'") end File.read(template_filepath) end def self.render(template, template_vars_hash) Fastlane::ErbalT.new(template_vars_hash).render(template) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems