class Tiller::TemplateSource

Subclasses provide templates (an array), and individual template contents (a string containing ERB data)

Public Class Methods

new() click to toggle source
# File lib/tiller/templatesource.rb, line 13
def initialize
  setup
end

Public Instance Methods

ping() click to toggle source
# File lib/tiller/templatesource.rb, line 30
def ping
  'ping!' + Tiller::config.to_s
end
setup() click to toggle source

This is where any post-initialisation logic happens (connecting to a database etc.)

# File lib/tiller/templatesource.rb, line 19
def setup
end
template(_template_name) click to toggle source
# File lib/tiller/templatesource.rb, line 26
def template(_template_name)
  ""
end
templates() click to toggle source
# File lib/tiller/templatesource.rb, line 22
def templates
  []
end