module WinRM::FS::Scripts

PS1 scripts

Public Class Methods

render(template, context) click to toggle source
# File lib/winrm-fs/scripts/scripts.rb, line 22
def self.render(template, context)
  template_path = File.expand_path(
    "#{File.dirname(__FILE__)}/#{template}.ps1.erb")
  template = File.read(template_path)
  Erubis::Eruby.new(template).result(context)
end