Sha256: a488f6c0753fba7130a3434a1090e9ace2f60064fa1542cb6dd3c08e092bda7c
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
module Lono::Builder::Configset::Definition::Dsl::Syntax module Content def content_file(path) content_path = "#{file_root}/content" file = "#{content_path}/#{path}" if File.exist?(file) IO.read(file) else "File not found: #{file}" end end def file_root if @configset @configset.root else @blueprint.root end end def s3_key(name) Lono::Configset::S3File::Registry.register(name, blueprint: @blueprint, configset: @configset, root: @root) "file://configset/#{@configset}/#{name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lono-8.0.0.pre.rc3 | lib/lono/builder/configset/definition/dsl/syntax/content.rb |