module Humidifier::Loader

Reads the specs/CloudFormationResourceSpecification.json file and load each resource as a class

Public Class Methods

load() click to toggle source

loop through the specs and register each class

# File lib/humidifier/loader.rb, line 127
def self.load
  filepath = File.expand_path("../../#{SPECIFICATION}", __dir__)
  return unless File.file?(filepath)

  Compiler.new(JSON.parse(File.read(filepath))).compile
end