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.41 ./lib/stacco/resources.rb
stacco-0.1.40 ./lib/stacco/resources.rb
stacco-0.1.39 ./lib/stacco/resources.rb
stacco-0.1.38 ./lib/stacco/resources.rb
stacco-0.1.37 ./lib/stacco/resources.rb
stacco-0.1.36 ./lib/stacco/resources.rb
stacco-0.1.35 ./lib/stacco/resources.rb
stacco-0.1.33 ./lib/stacco/resources.rb
stacco-0.1.32 ./lib/stacco/resources.rb
stacco-0.1.30 ./lib/stacco/resources.rb
stacco-0.1.29 ./lib/stacco/resources.rb
stacco-0.1.28 ./lib/stacco/resources.rb
stacco-0.1.27 ./lib/stacco/resources.rb
stacco-0.1.26 ./lib/stacco/resources.rb
stacco-0.1.24 ./lib/stacco/resources.rb
stacco-0.1.23 ./lib/stacco/resources.rb
stacco-0.1.22 ./lib/stacco/resources.rb
stacco-0.1.21 ./lib/stacco/resources.rb
stacco-0.1.20 ./lib/stacco/resources.rb