class FPM::Fry::Plugin::Service::Environment

Public Instance Methods

render(file) click to toggle source
# File lib/fpm/fry/plugin/service.rb, line 11
def render(file)
  _erbout = ""
  path = File.join(File.dirname(__FILE__),'..','templates',file)
  erb = ERB.new(IO.read(path), trim_mode: "-")
  eval erb.src, nil, path
  return _erbout
end