Sha256: e7822ca696d50e35b6f4c385d08c3bac72541862180aa18c7bc5f94ff72204a3
Contents?: true
Size: 449 Bytes
Versions: 18
Compression:
Stored size: 449 Bytes
Contents
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
Version data entries
18 entries across 18 versions & 2 rubygems