Sha256: ad0959e27ec7e553021a8ea343a9b82dcfb81a7066423d993c53c2d593250d7e
Contents?: true
Size: 492 Bytes
Versions: 39
Compression:
Stored size: 492 Bytes
Contents
require 'pathname' require 'json' require 'erb' require 'stacco/base' module Stacco::Resources root_dir = Pathname.new(File.expand_path("../../../priv", __FILE__)) StackTemplate = ERB.new((root_dir + "stack.json.erb").read) LayerTemplates = {} (root_dir + "layers").children.each{ |path| LayerTemplates[path.basename('.json').to_s] = JSON.parse(path.read) } RoleScripts = {} (root_dir + "roles").children.each{ |path| RoleScripts[path.basename('.sh').to_s] = path.read } end
Version data entries
39 entries across 39 versions & 1 rubygems