Sha256: 4f16704a05d58c4df5beef5221912d22496dcd149d90d09a637a602577052d77
Contents?: true
Size: 567 Bytes
Versions: 23
Compression:
Stored size: 567 Bytes
Contents
$LOAD_PATH << File.dirname(__FILE__) require 'yaml' require 'erb' require 'cfnlego/cloudformation' require 'cfnlego/resource' require 'cfnlego/version' module Cfnlego def self.Resources basedir = File.join("#{File.realpath(File.dirname(__FILE__))}", "cfnlego","resources", File::SEPARATOR) resource_yaml_files = File.join(basedir, "**", "*.yaml") resources = [] Dir.glob(resource_yaml_files) do |filename| resources << filename.sub(/#{basedir}/, '').gsub(/#{File::SEPARATOR}/, '::').sub(/\.yaml/, '') end return resources end end
Version data entries
23 entries across 23 versions & 1 rubygems