Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.449 kb
module Veewee
class Template
attr_accessor :env
attr_reader :name, :path
def initialize(name, path, env)
@name = name
@path = path
@env = env
return self
end
def exists?
filename = Dir.glob("#{path}/definition.rb")
if filename.length != 0
env.logger.debug("[Template] template '#{name}' is valid")
return true
else
return false
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.