Class: Emasser::CMMC
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Emasser::CMMC
- 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
Methods included from OutputConverters
Methods included from InputConverters
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
#assessments ⇒ Object
537 538 539 540 541 542 543 |
# File 'lib/emasser/get.rb', line 537 def assessments result = SwaggerClient::CMMCAssessmentsApi.new.get_cmmc_assessments([: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 |