Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#render(file, binding) ⇒ Object



3
4
5
6
# File 'lib/capistrano/ext/slicehost/render.rb', line 3

def render(file, binding)
  template = File.read("#{File.dirname(__FILE__)}/templates/#{file}.erb")
  result = ERB.new(template).result(binding)
end