lib/lono/builder/configset/definition/dsl/syntax/content.rb in lono-8.0.0.pre.rc3 vs lib/lono/builder/configset/definition/dsl/syntax/content.rb in lono-8.0.0.pre.rc4
- old
+ new
@@ -1,26 +1,22 @@
module Lono::Builder::Configset::Definition::Dsl::Syntax
module Content
def content_file(path)
- content_path = "#{file_root}/content"
+ content_path = "#{content_file_root}/content"
file = "#{content_path}/#{path}"
if File.exist?(file)
IO.read(file)
else
"File not found: #{file}"
end
end
- def file_root
+ private
+ def content_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