Sha256: b22c350827be4eea18ea6703e3b02aeb68a60c55e0c30227ab9101875a344247
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 KB
Contents
# frozen_string_literal: true require 'json' require 'yaml' require 'terracop/cop/aws/describe_security_group_rules' require 'terracop/cop/aws/ensure_tags' require 'terracop/cop/aws/iam_role_policy' require 'terracop/cop/aws/open_egress' require 'terracop/cop/aws/open_ingress' require 'terracop/cop/aws/open_ssh' require 'terracop/cop/aws/unrestricted_egress_ports' require 'terracop/cop/aws/unrestricted_ingress_ports' require 'terracop/cop/aws/wide_egress' require 'terracop/cop/aws/wide_ingress' require 'terracop/cop/style/dash_in_resource_name' require 'terracop/cop/style/resource_type_in_name' require 'terracop/cop/style/snake_case' require 'terracop/formatters/default' require 'terracop/formatters/html' require 'terracop/formatters/json' require 'terracop/plan_loader' require 'terracop/runner' require 'terracop/state_loader' require 'terracop/version' # Wrapper module for the gem. module Terracop class Error < StandardError; end class << self def config @config ||= begin defaults_path = File.join(__dir__, '../default_config.yml') overrides_path = '.terracop.yml' config = YAML.safe_load(File.read(defaults_path)) || {} if File.exist?(overrides_path) config.merge!(YAML.safe_load(File.read(overrides_path)) || {}) end config end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
terracop-0.1.1 | lib/terracop.rb |
terracop-0.1.0 | lib/terracop.rb |