Sha256: 23915ee6d32dd05764e4ce9bc818cf05b4a15c47857ee98a412780743f3a92bf
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
module Lono class Blueprint attr_reader :name def initialize(options={}) @options = options @name = options[:blueprint] end def exist? !root.nil? end def root paths = Dir.glob("#{Lono.root}/{app,vendor}/blueprints/*") paths.find do |path| path.include?("blueprints/#{@name}") end end def output_path "#{Lono.root}/output/#{@name}/template.yml" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lono-8.0.0.pre.rc2 | lib/lono/blueprint.rb |
lono-8.0.0.pre.rc1 | lib/lono/blueprint.rb |