Class: Emasser::CMMC

Inherits:
SubCommandBase show all
Defined in:
lib/emasser/get.rb

Overview

The Cybersecurity Maturity Model Certification (CMMC) Assessments endpoint provides the ability to view CMMC assessment information. It is available to CMMC eMASS only.

Endpoints:

/api/cmmc-assessments - Get CMMC assessment information

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SubCommandBase

banner

Methods included from OutputConverters

#to_output_hash

Methods included from InputConverters

#to_input_hash

Methods included from OptionsParser

#optional_options, #required_options

Class Method Details

.exit_on_failure?Boolean



527
528
529
# File 'lib/emasser/get.rb', line 527

def self.exit_on_failure?
  true
end

Instance Method Details

#assessmentsObject



537
538
539
540
541
542
543
# File 'lib/emasser/get.rb', line 537

def assessments
  result = SwaggerClient::CMMCAssessmentsApi.new.get_cmmc_assessments(options[:sinceDate])
  puts to_output_hash(result).green
rescue SwaggerClient::ApiError => e
  puts 'Exception when calling ApprovalChainApi->get_cmmc_assessments'.red
  puts to_output_hash(e)
end