Module: Terracop
- Defined in:
- lib/terracop.rb,
lib/terracop/runner.rb,
lib/terracop/version.rb,
lib/terracop/cop/base.rb,
lib/terracop/plan_loader.rb,
lib/terracop/state_loader.rb,
lib/terracop/formatters/html.rb,
lib/terracop/formatters/json.rb,
lib/terracop/cop/aws/open_ssh.rb,
lib/terracop/formatters/default.rb,
lib/terracop/cop/aws/ensure_tags.rb,
lib/terracop/cop/aws/open_egress.rb,
lib/terracop/cop/aws/wide_egress.rb,
lib/terracop/cop/aws/open_ingress.rb,
lib/terracop/cop/aws/wide_ingress.rb,
lib/terracop/cop/style/snake_case.rb,
lib/terracop/cop/aws/fault_intolerant.rb,
lib/terracop/cop/aws/iam_inline_policy.rb,
lib/terracop/cop/aws/bad_password_policy.rb,
lib/terracop/cop/aws/iam_policy_attachment.rb,
lib/terracop/cop/aws/ensure_propagated_tags.rb,
lib/terracop/cop/aws/prefer_launch_templates.rb,
lib/terracop/cop/aws/security_group_rule_cop.rb,
lib/terracop/cop/style/dash_in_resource_name.rb,
lib/terracop/cop/style/resource_type_in_name.rb,
lib/terracop/cop/aws/unrestricted_egress_ports.rb,
lib/terracop/cop/aws/unrestricted_ingress_ports.rb,
lib/terracop/cop/aws/describe_security_group_rules.rb
Overview
Wrapper module for the gem.
Defined Under Namespace
Modules: Cop, Formatters Classes: Error, PlanLoader, Runner, StateLoader
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
Class Method Details
.config ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/terracop.rb', line 40 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 |