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

Version Path
stacco-0.1.70 ./lib/stacco/resources.rb
stacco-0.1.68 ./lib/stacco/resources.rb
stacco-0.1.66 ./lib/stacco/resources.rb
stacco-0.1.64 ./lib/stacco/resources.rb
stacco-0.1.63 ./lib/stacco/resources.rb
stacco-0.1.62 ./lib/stacco/resources.rb
stacco-0.1.61 ./lib/stacco/resources.rb
stacco-0.1.60 ./lib/stacco/resources.rb
stacco-0.1.59 ./lib/stacco/resources.rb
stacco-0.1.57 ./lib/stacco/resources.rb
stacco-0.1.53 ./lib/stacco/resources.rb
stacco-0.1.52 ./lib/stacco/resources.rb
stacco-0.1.50 ./lib/stacco/resources.rb
stacco-0.1.49 ./lib/stacco/resources.rb
stacco-0.1.48 ./lib/stacco/resources.rb
stacco-0.1.47 ./lib/stacco/resources.rb
stacco-0.1.46 ./lib/stacco/resources.rb
stacco-0.1.44 ./lib/stacco/resources.rb
stacco-0.1.43 ./lib/stacco/resources.rb
stacco-0.1.42 ./lib/stacco/resources.rb