Method: Fastlane::ErbTemplateHelper.load_from_path

Defined in:
fastlane/lib/fastlane/erb_template_helper.rb

.load_from_path(template_filepath) ⇒ Object



11
12
13
14
15
16
# File 'fastlane/lib/fastlane/erb_template_helper.rb', line 11

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