module Lono::Configset::Strategy::Helpers::Dsl::Core
Public Instance Methods
content_file(path)
click to toggle source
# File lib/lono/configset/strategy/helpers/dsl/core.rb, line 3 def content_file(path) content_path = "#{@root}/lib/content" file = "#{content_path}/#{path}" if File.exist?(file) IO.read(file) else "File not found: #{file}" end end
s3_key(name)
click to toggle source
# File lib/lono/configset/strategy/helpers/dsl/core.rb, line 13 def s3_key(name) Lono::Configset::S3File::Registry.register(name, blueprint: @blueprint, configset: @configset, root: @root) "file://configset/#{@configset}/#{name}" end