Sha256: a484a79065f55041b4e8a0dd60d9d7d1dc9ee75bb8a6c1103bd0332c20f43005
Contents?: true
Size: 776 Bytes
Versions: 4
Compression:
Stored size: 776 Bytes
Contents
class Lono::Builder::Configset::Definition class Erb < Base def evaluate load_context cloudformation_init = build wrap_with_metadata(cloudformation_init) end def build content = RenderMePretty.result(@configset.path, context: self) if File.extname(@configset.path) == ".yml" load_yaml(content) else JSON.load(content) end end def load_yaml(content) # init structure # Write to file so can use Yamler::Validator path = "/tmp/lono/configset.yml" FileUtils.mkdir_p(File.dirname(path)) IO.write(path, content) Lono::Yamler::Validator.new(path).validate! Lono::Yamler::Loader.new(content).load end def authentication # noop end end end
Version data entries
4 entries across 4 versions & 1 rubygems