Class: InspecPlugins::Iggy::CloudFormation::CliCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/inspec-iggy/cloudformation/cli_command.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



68
69
70
71
72
73
74
75
# File 'lib/inspec-iggy/cloudformation/cli_command.rb', line 68

def generate
  Inspec::Log.level = :debug if options[:debug]
  # hash of generated controls
  generated_controls = InspecPlugins::Iggy::CloudFormation::Generate.parse_generate(options[:template])
  printable_controls = InspecPlugins::Iggy::InspecHelper.cfn_controls(options[:title], generated_controls, options[:stack])
  InspecPlugins::Iggy::ProfileHelper.render_profile(ui, options, options[:template], printable_controls)
  exit 0
end