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

Version Path
veewee-0.5.0.alpha4 lib/veewee/template.rb
veewee-0.5.0.alpha3 lib/veewee/template.rb
veewee-0.5.0.alpha2 lib/veewee/template.rb
veewee-0.5.0.alpha1 lib/veewee/template.rb
veewee-0.4.5.1 lib/veewee/template.rb
veewee-0.4.5 lib/veewee/template.rb
veewee-0.4.5.pre1 lib/veewee/template.rb
veewee-0.4.4 lib/veewee/template.rb
veewee-0.4.3 lib/veewee/template.rb
veewee-0.4.2 lib/veewee/template.rb
veewee-0.4.1 lib/veewee/template.rb
veewee-0.4.0 lib/veewee/template.rb
veewee-0.3.12 lib/veewee/template.rb
veewee-0.3.11 lib/veewee/template.rb
veewee-0.3.10 lib/veewee/template.rb
veewee-0.3.9 lib/veewee/template.rb
veewee-atlassian-0.3.11 lib/veewee/template.rb
veewee-0.3.7 lib/veewee/template.rb