Sha256: 7b846086f7ee789997e206ba0068312afd02f1593659a0673a96705a36f2773e

Contents?: true

Size: 440 Bytes

Versions: 13

Compression:

Stored size: 440 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

13 entries across 13 versions & 1 rubygems

Version Path
veewee-0.3.6 lib/veewee/template.rb
veewee-0.3.5 lib/veewee/template.rb
veewee-0.3.4 lib/veewee/template.rb
veewee-0.3.3 lib/veewee/template.rb
veewee-0.3.2 lib/veewee/template.rb
veewee-0.3.1 lib/veewee/template.rb
veewee-0.3.0.beta2 lib/veewee/template.rb
veewee-0.3.0.beta1 lib/veewee/template.rb
veewee-0.3.0.alpha9 lib/veewee/template.rb
veewee-0.3.0.alpha8 lib/veewee/template.rb
veewee-0.3.0.alpha7 lib/veewee/template.rb
veewee-0.3.0.alpha6 lib/veewee/template.rb
veewee-0.3.0.alpha5 lib/veewee/template.rb