Method: InspecPlugins::CloudFormation::Input#initialize

Defined in:
lib/inspec-cloudformation/input.rb

#initializeInput

Returns a new instance of Input.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/inspec-cloudformation/input.rb', line 18

def initialize
  @plugin_conf = Inspec::Config.cached.fetch_plugin_config("inspec-cloudformation")

  @logger = Inspec::Log
  logger.debug format("inspec-cloudformation plugin version %s", VERSION)

  # @mount_point = fetch_plugin_setting("mount_point", "secret")
  # @path_prefix = fetch_plugin_setting("path_prefix", "inspec")

  # We need priority to be numeric; even though env vars or JSON may present it as string - hence the to_i
  @priority = fetch_plugin_setting("priority", 60).to_i


end