class Fastlane::Helper::CoreosSystemdTemplate
Attributes
params[R]
Public Class Methods
new(params)
click to toggle source
# File lib/fastlane/plugin/coreos/helper/coreos_systemd_template.rb, line 13 def initialize(params) @params = params end
with_params(params)
click to toggle source
class methods that you define here become available in your action as `Helper::CoreosHelper.your_method`
# File lib/fastlane/plugin/coreos/helper/coreos_systemd_template.rb, line 9 def self.with_params(params) CoreosSystemdTemplate.new(params).render end
Public Instance Methods
render()
click to toggle source
# File lib/fastlane/plugin/coreos/helper/coreos_systemd_template.rb, line 17 def render file = Tempfile.new('service') file.write ERB.new(File.read(@params[:service_file])).result(binding) file.close file end