Sha256: f755abc728fa8bf6644a131353f437b2ca2b68e2cb2a21af9d5636e7ebd74bfd
Contents?: true
Size: 992 Bytes
Versions: 1
Compression:
Stored size: 992 Bytes
Contents
# # File 'model.rb' created on 10 mar 2008 at 13:39:48. # # See 'dokkit.rb' or +LICENSE+ for licence information. # # (C) 2008 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors). # require 'yaml' require 'dokkit/taskconfig' require 'dokkit/cachemanager' module Dokkit class Model class << self def init(name = 'model', &blk) @model ||= Model.new(name, &blk) end end attr_accessor :config attr_reader :name, :cache def initialize(name, &blk) @name = name @config = TaskConfig.new yield self if block_given? @cache = CacheManager.instance @cache.init('deps.yaml', @config.cache_dir) self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dokkit-0.3.0 | lib/dokkit/model.rb |