emasser 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +6 -2
- data/.github/workflows/test-cli.yml +4 -5
- data/.gitignore +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +26 -24
- data/README.md +4 -4
- data/emasser.gemspec +4 -3
- data/exe/emasser +0 -0
- data/lib/emasser/configuration.rb +1 -1
- data/lib/emasser/delete.rb +8 -8
- data/lib/emasser/get.rb +43 -43
- data/lib/emasser/post.rb +29 -29
- data/lib/emasser/put.rb +14 -14
- data/lib/emasser/version.rb +1 -1
- data/lib/emasser.rb +1 -1
- metadata +20 -400
- data/TAGS +0 -2393
- data/emass_client/eMASSRestOpenApi.yaml +0 -5698
- data/emass_client/ruby_client/.gitignore +0 -39
- data/emass_client/ruby_client/.rspec +0 -2
- data/emass_client/ruby_client/.rubocop.yml +0 -154
- data/emass_client/ruby_client/.swagger-codegen/VERSION +0 -1
- data/emass_client/ruby_client/.swagger-codegen-ignore +0 -23
- data/emass_client/ruby_client/Gemfile +0 -9
- data/emass_client/ruby_client/README.md +0 -1284
- data/emass_client/ruby_client/Rakefile +0 -8
- data/emass_client/ruby_client/docs/ArtifactsApi.md +0 -284
- data/emass_client/ruby_client/docs/ArtifactsDelete.md +0 -6
- data/emass_client/ruby_client/docs/ArtifactsDeleteInner.md +0 -7
- data/emass_client/ruby_client/docs/ArtifactsExportApi.md +0 -76
- data/emass_client/ruby_client/docs/ArtifactsGet.md +0 -20
- data/emass_client/ruby_client/docs/ArtifactsRequestPutBody.md +0 -16
- data/emass_client/ruby_client/docs/ArtifactsResponseDel.md +0 -8
- data/emass_client/ruby_client/docs/ArtifactsResponseDelData.md +0 -9
- data/emass_client/ruby_client/docs/ArtifactsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ArtifactsResponsePutPost.md +0 -8
- data/emass_client/ruby_client/docs/CACApi.md +0 -140
- data/emass_client/ruby_client/docs/CMMCAssessmentsApi.md +0 -71
- data/emass_client/ruby_client/docs/CacGet.md +0 -13
- data/emass_client/ruby_client/docs/CacRequestPostBody.md +0 -8
- data/emass_client/ruby_client/docs/CacResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/CacResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/CacResponsePostData.md +0 -9
- data/emass_client/ruby_client/docs/CmmcGet.md +0 -19
- data/emass_client/ruby_client/docs/CmmcResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ConnectivityCcsd.md +0 -8
- data/emass_client/ruby_client/docs/ControlsApi.md +0 -140
- data/emass_client/ruby_client/docs/ControlsGet.md +0 -36
- data/emass_client/ruby_client/docs/ControlsPut.md +0 -9
- data/emass_client/ruby_client/docs/ControlsRequestPutBody.md +0 -29
- data/emass_client/ruby_client/docs/ControlsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ControlsResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/DefinitionTransitions.md +0 -9
- data/emass_client/ruby_client/docs/DeleteMilestone.md +0 -7
- data/emass_client/ruby_client/docs/DeletePoam.md +0 -7
- data/emass_client/ruby_client/docs/Empty200Response.md +0 -6
- data/emass_client/ruby_client/docs/Error.md +0 -8
- data/emass_client/ruby_client/docs/InstancesTransitions.md +0 -12
- data/emass_client/ruby_client/docs/MilestoneResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/MilestoneResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/MilestoneResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/MilestonesApi.md +0 -350
- data/emass_client/ruby_client/docs/MilestonesDelete.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesGet.md +0 -12
- data/emass_client/ruby_client/docs/MilestonesPost.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesPut.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesPutPostDelete.md +0 -11
- data/emass_client/ruby_client/docs/MilestonesRequestPostBody.md +0 -9
- data/emass_client/ruby_client/docs/MilestonesRequestPutBody.md +0 -9
- data/emass_client/ruby_client/docs/MilestonesRequiredPost.md +0 -8
- data/emass_client/ruby_client/docs/MilestonesRequiredPut.md +0 -9
- data/emass_client/ruby_client/docs/Model200.md +0 -7
- data/emass_client/ruby_client/docs/Model201.md +0 -7
- data/emass_client/ruby_client/docs/Model201Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model400.md +0 -7
- data/emass_client/ruby_client/docs/Model400Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model400Response.md +0 -7
- data/emass_client/ruby_client/docs/Model401.md +0 -7
- data/emass_client/ruby_client/docs/Model401Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model403.md +0 -7
- data/emass_client/ruby_client/docs/Model403Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model404.md +0 -8
- data/emass_client/ruby_client/docs/Model404Response.md +0 -7
- data/emass_client/ruby_client/docs/Model405.md +0 -7
- data/emass_client/ruby_client/docs/Model405Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model411.md +0 -7
- data/emass_client/ruby_client/docs/Model411Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model490.md +0 -7
- data/emass_client/ruby_client/docs/Model490Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model500.md +0 -7
- data/emass_client/ruby_client/docs/Model500Meta.md +0 -8
- data/emass_client/ruby_client/docs/PACApi.md +0 -137
- data/emass_client/ruby_client/docs/POAMApi.md +0 -346
- data/emass_client/ruby_client/docs/PacGet.md +0 -14
- data/emass_client/ruby_client/docs/PacPost.md +0 -9
- data/emass_client/ruby_client/docs/PacRequestPostBody.md +0 -9
- data/emass_client/ruby_client/docs/PacResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/PacResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/PoamDelete.md +0 -6
- data/emass_client/ruby_client/docs/PoamGet.md +0 -39
- data/emass_client/ruby_client/docs/PoamPost.md +0 -6
- data/emass_client/ruby_client/docs/PoamPostPutDel.md +0 -10
- data/emass_client/ruby_client/docs/PoamPut.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequestPostBody.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequestPutBody.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequiredPost.md +0 -32
- data/emass_client/ruby_client/docs/PoamRequiredPut.md +0 -35
- data/emass_client/ruby_client/docs/PoamResponseDelete.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/Register.md +0 -8
- data/emass_client/ruby_client/docs/RegisterData.md +0 -7
- data/emass_client/ruby_client/docs/RegisterUserRequestPostBody.md +0 -7
- data/emass_client/ruby_client/docs/RegistrationApi.md +0 -71
- data/emass_client/ruby_client/docs/RoleCategory.md +0 -10
- data/emass_client/ruby_client/docs/Roles.md +0 -9
- data/emass_client/ruby_client/docs/Ssps.md +0 -9
- data/emass_client/ruby_client/docs/Stage.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeApplication.md +0 -12
- data/emass_client/ruby_client/docs/StaticCodeRequestPostBody.md +0 -6
- data/emass_client/ruby_client/docs/StaticCodeRequiredPost.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeRequiredPostApplication.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeScansApi.md +0 -73
- data/emass_client/ruby_client/docs/Success200Response.md +0 -8
- data/emass_client/ruby_client/docs/SystemIdArtifactsBody.md +0 -10
- data/emass_client/ruby_client/docs/SystemResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesApi.md +0 -137
- data/emass_client/ruby_client/docs/SystemRolesCategoryResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesResponseData.md +0 -8
- data/emass_client/ruby_client/docs/Systems.md +0 -70
- data/emass_client/ruby_client/docs/SystemsApi.md +0 -155
- data/emass_client/ruby_client/docs/Test.md +0 -8
- data/emass_client/ruby_client/docs/TestApi.md +0 -66
- data/emass_client/ruby_client/docs/TestData.md +0 -7
- data/emass_client/ruby_client/docs/TestResultsApi.md +0 -144
- data/emass_client/ruby_client/docs/TestResultsGet.md +0 -15
- data/emass_client/ruby_client/docs/TestResultsPost.md +0 -9
- data/emass_client/ruby_client/docs/TestResultsRequestPostBody.md +0 -11
- data/emass_client/ruby_client/docs/TestResultsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/TestResultsResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/Users.md +0 -9
- data/emass_client/ruby_client/docs/WorkflowDefinitionGet.md +0 -11
- data/emass_client/ruby_client/docs/WorkflowDefinitionResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/WorkflowDefinitionsApi.md +0 -74
- data/emass_client/ruby_client/docs/WorkflowInstancesApi.md +0 -146
- data/emass_client/ruby_client/docs/WorkflowInstancesGet.md +0 -16
- data/emass_client/ruby_client/docs/WorkflowInstancesResponseGet.md +0 -8
- data/emass_client/ruby_client/git_push.sh +0 -55
- data/emass_client/ruby_client/lib/swagger_client/api/artifacts_api.rb +0 -310
- data/emass_client/ruby_client/lib/swagger_client/api/artifacts_export_api.rb +0 -86
- data/emass_client/ruby_client/lib/swagger_client/api/cac_api.rb +0 -143
- data/emass_client/ruby_client/lib/swagger_client/api/cmmc_assessments_api.rb +0 -77
- data/emass_client/ruby_client/lib/swagger_client/api/controls_api.rb +0 -143
- data/emass_client/ruby_client/lib/swagger_client/api/milestones_api.rb +0 -366
- data/emass_client/ruby_client/lib/swagger_client/api/pac_api.rb +0 -140
- data/emass_client/ruby_client/lib/swagger_client/api/poam_api.rb +0 -345
- data/emass_client/ruby_client/lib/swagger_client/api/registration_api.rb +0 -78
- data/emass_client/ruby_client/lib/swagger_client/api/static_code_scans_api.rb +0 -84
- data/emass_client/ruby_client/lib/swagger_client/api/system_roles_api.rb +0 -150
- data/emass_client/ruby_client/lib/swagger_client/api/systems_api.rb +0 -162
- data/emass_client/ruby_client/lib/swagger_client/api/test_api.rb +0 -70
- data/emass_client/ruby_client/lib/swagger_client/api/test_results_api.rb +0 -149
- data/emass_client/ruby_client/lib/swagger_client/api/workflow_definitions_api.rb +0 -76
- data/emass_client/ruby_client/lib/swagger_client/api/workflow_instances_api.rb +0 -153
- data/emass_client/ruby_client/lib/swagger_client/api_client.rb +0 -389
- data/emass_client/ruby_client/lib/swagger_client/api_error.rb +0 -57
- data/emass_client/ruby_client/lib/swagger_client/configuration.rb +0 -224
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete.rb +0 -201
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete_inner.rb +0 -207
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_get.rb +0 -383
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_request_put_body.rb +0 -363
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del_data.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_put_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_get.rb +0 -301
- data/emass_client/ruby_client/lib/swagger_client/models/cac_request_post_body.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post_data.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/cmmc_get.rb +0 -398
- data/emass_client/ruby_client/lib/swagger_client/models/cmmc_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/connectivity_ccsd.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/controls_get.rb +0 -663
- data/emass_client/ruby_client/lib/swagger_client/models/controls_put.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/controls_request_put_body.rb +0 -606
- data/emass_client/ruby_client/lib/swagger_client/models/controls_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/controls_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/definition_transitions.rb +0 -274
- data/emass_client/ruby_client/lib/swagger_client/models/delete_milestone.rb +0 -212
- data/emass_client/ruby_client/lib/swagger_client/models/delete_poam.rb +0 -212
- data/emass_client/ruby_client/lib/swagger_client/models/empty200_response.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/error.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/instances_transitions.rb +0 -327
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_delete.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_get.rb +0 -291
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_post.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_put.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_put_post_delete.rb +0 -247
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_post_body.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_put_body.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_post.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_put.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/model_200.rb +0 -208
- data/emass_client/ruby_client/lib/swagger_client/models/model_201.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_201_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_400.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_400_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_400_response.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_401.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_401_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_403.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_403_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_404.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_404_response.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_405.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_405_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_411.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_411_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_490.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_490_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_500.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_500_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/pac_get.rb +0 -311
- data/emass_client/ruby_client/lib/swagger_client/models/pac_post.rb +0 -259
- data/emass_client/ruby_client/lib/swagger_client/models/pac_request_post_body.rb +0 -261
- data/emass_client/ruby_client/lib/swagger_client/models/pac_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/pac_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_delete.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_get.rb +0 -646
- data/emass_client/ruby_client/lib/swagger_client/models/poam_post.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_post_put_del.rb +0 -237
- data/emass_client/ruby_client/lib/swagger_client/models/poam_put.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_request_post_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_request_put_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_required_post.rb +0 -564
- data/emass_client/ruby_client/lib/swagger_client/models/poam_required_put.rb +0 -594
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_delete.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/register.rb +0 -215
- data/emass_client/ruby_client/lib/swagger_client/models/register_data.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/register_user_request_post_body.rb +0 -211
- data/emass_client/ruby_client/lib/swagger_client/models/role_category.rb +0 -272
- data/emass_client/ruby_client/lib/swagger_client/models/roles.rb +0 -274
- data/emass_client/ruby_client/lib/swagger_client/models/ssps.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/stage.rb +0 -252
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_application.rb +0 -303
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_request_post_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post_application.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/success200_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_id_artifacts_body.rb +0 -284
- data/emass_client/ruby_client/lib/swagger_client/models/system_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_category_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response_data.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/systems.rb +0 -1137
- data/emass_client/ruby_client/lib/swagger_client/models/test.rb +0 -215
- data/emass_client/ruby_client/lib/swagger_client/models/test_data.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_get.rb +0 -333
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_post.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_request_post_body.rb +0 -306
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/users.rb +0 -224
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_get.rb +0 -282
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_get.rb +0 -368
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/version.rb +0 -14
- data/emass_client/ruby_client/lib/swagger_client.rb +0 -161
- data/emass_client/ruby_client/spec/api/artifacts_api_spec.rb +0 -92
- data/emass_client/ruby_client/spec/api/artifacts_export_api_spec.rb +0 -48
- data/emass_client/ruby_client/spec/api/cac_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/cmmc_assessments_api_spec.rb +0 -46
- data/emass_client/ruby_client/spec/api/controls_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/milestones_api_spec.rb +0 -105
- data/emass_client/ruby_client/spec/api/pac_api_spec.rb +0 -59
- data/emass_client/ruby_client/spec/api/poam_api_spec.rb +0 -103
- data/emass_client/ruby_client/spec/api/registration_api_spec.rb +0 -46
- data/emass_client/ruby_client/spec/api/static_code_scans_api_spec.rb +0 -47
- data/emass_client/ruby_client/spec/api/system_roles_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/systems_api_spec.rb +0 -67
- data/emass_client/ruby_client/spec/api/test_api_spec.rb +0 -45
- data/emass_client/ruby_client/spec/api/test_results_api_spec.rb +0 -62
- data/emass_client/ruby_client/spec/api/workflow_definitions_api_spec.rb +0 -47
- data/emass_client/ruby_client/spec/api/workflow_instances_api_spec.rb +0 -63
- data/emass_client/ruby_client/spec/api_client_spec.rb +0 -225
- data/emass_client/ruby_client/spec/base_object_spec.rb +0 -109
- data/emass_client/ruby_client/spec/configuration_spec.rb +0 -41
- data/emass_client/ruby_client/spec/models/artifacts_delete_inner_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/artifacts_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/artifacts_get_spec.rb +0 -126
- data/emass_client/ruby_client/spec/models/artifacts_request_put_body_spec.rb +0 -102
- data/emass_client/ruby_client/spec/models/artifacts_response_del_data_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/artifacts_response_del_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/artifacts_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/artifacts_response_put_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_get_spec.rb +0 -80
- data/emass_client/ruby_client/spec/models/cac_request_post_body_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_response_post_data_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/cac_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cmmc_get_spec.rb +0 -128
- data/emass_client/ruby_client/spec/models/cmmc_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/connectivity_ccsd_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/controls_get_spec.rb +0 -262
- data/emass_client/ruby_client/spec/models/controls_put_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/controls_request_put_body_spec.rb +0 -216
- data/emass_client/ruby_client/spec/models/controls_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/controls_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/definition_transitions_spec.rb +0 -64
- data/emass_client/ruby_client/spec/models/delete_milestone_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/delete_poam_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/empty200_response_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/error_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/instances_transitions_spec.rb +0 -86
- data/emass_client/ruby_client/spec/models/milestone_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestone_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestone_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestones_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_get_spec.rb +0 -74
- data/emass_client/ruby_client/spec/models/milestones_post_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_put_post_delete_spec.rb +0 -64
- data/emass_client/ruby_client/spec/models/milestones_put_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_request_post_body_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/milestones_request_put_body_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/milestones_required_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestones_required_put_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/model_200_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_201_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_201_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_400_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_400_response_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_400_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_401_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_401_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_403_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_403_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_404_response_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_404_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_405_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_405_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_411_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_411_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_490_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_490_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_500_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_500_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/pac_get_spec.rb +0 -86
- data/emass_client/ruby_client/spec/models/pac_post_spec.rb +0 -56
- data/emass_client/ruby_client/spec/models/pac_request_post_body_spec.rb +0 -56
- data/emass_client/ruby_client/spec/models/pac_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/pac_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_get_spec.rb +0 -264
- data/emass_client/ruby_client/spec/models/poam_post_put_del_spec.rb +0 -58
- data/emass_client/ruby_client/spec/models/poam_post_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_put_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_request_post_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_request_put_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_required_post_spec.rb +0 -218
- data/emass_client/ruby_client/spec/models/poam_required_put_spec.rb +0 -236
- data/emass_client/ruby_client/spec/models/poam_response_delete_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/register_data_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/register_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/register_user_request_post_body_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/role_category_spec.rb +0 -62
- data/emass_client/ruby_client/spec/models/roles_spec.rb +0 -60
- data/emass_client/ruby_client/spec/models/ssps_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/stage_spec.rb +0 -50
- data/emass_client/ruby_client/spec/models/static_code_application_spec.rb +0 -78
- data/emass_client/ruby_client/spec/models/static_code_request_post_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/static_code_required_post_application_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/static_code_required_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/success200_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_id_artifacts_body_spec.rb +0 -66
- data/emass_client/ruby_client/spec/models/system_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_category_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_response_data_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/systems_spec.rb +0 -510
- data/emass_client/ruby_client/spec/models/test_data_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/test_results_get_spec.rb +0 -96
- data/emass_client/ruby_client/spec/models/test_results_post_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/test_results_request_post_body_spec.rb +0 -68
- data/emass_client/ruby_client/spec/models/test_results_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/test_results_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/test_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/users_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/workflow_definition_get_spec.rb +0 -68
- data/emass_client/ruby_client/spec/models/workflow_definition_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/workflow_instances_get_spec.rb +0 -110
- data/emass_client/ruby_client/spec/models/workflow_instances_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/spec_helper.rb +0 -110
- data/emass_client/ruby_client/swagger_client.gemspec +0 -38
- data/emass_client/swagger-codegen/ruby_template/api_client.mustache +0 -384
- data/emass_client/swagger-codegen/ruby_template/api_info.mustache +0 -12
- data/emass_client/swagger-codegen/ruby_template/configuration.mustache +0 -234
- data/emass_client/swagger-codegen/ruby_template/gemspec.mustache +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 071f8617e2cb3f474beffbaab601a70efe914cf71a0a8a66bc519cb034b6ef2f
|
4
|
+
data.tar.gz: 004b1a45e63677cdf10740e129b0e1e4d4be8bc61e52db87b43e21f7364f564b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00986c06011736c7a3633bc946d0b14bb4564f733cc275668ab82319a13bf3dddefa58a0c6b6087d1c0a244353af0f1a903656506992ea609b98fa935338cd70'
|
7
|
+
data.tar.gz: b992847867a78bc81d5de0ec9a2c2c066d0ee275949a0e027f9fe70d4e83dc62886a6e55fa0c7ff885349aae2e50b2929418cb63d4cd275b4b6bb4dfda136fc2
|
@@ -17,7 +17,7 @@ jobs:
|
|
17
17
|
- run: git fetch origin +refs/tags/*:refs/tags/*
|
18
18
|
- name: Setup credentials and versioning
|
19
19
|
run: |
|
20
|
-
gem install
|
20
|
+
gem install keycutter
|
21
21
|
mkdir -p $HOME/.gem
|
22
22
|
touch $HOME/.gem/credentials
|
23
23
|
chmod 0600 $HOME/.gem/credentials
|
@@ -26,13 +26,17 @@ jobs:
|
|
26
26
|
env:
|
27
27
|
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
28
28
|
GPR_API_KEY: ${{secrets.GITHUB_TOKEN}}
|
29
|
-
- name: Build
|
29
|
+
- name: Build emasser
|
30
30
|
run: gem build *.gemspec
|
31
|
+
- name: Build emass_client
|
32
|
+
run: gem build -C emass_client/ruby_client/ emass_client.gemspec
|
31
33
|
- name: Publish to RubyGems
|
32
34
|
run: |
|
33
35
|
gem push --KEY rubygems --host https://rubygems.org *.gem
|
36
|
+
gem push --KEY rubygems --host https://rubygems.org emass_client/ruby_client/*.gem
|
34
37
|
- name: Publish to GPR
|
35
38
|
run: |
|
36
39
|
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
40
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} emass_client/ruby_client/*.gem
|
37
41
|
env:
|
38
42
|
OWNER: mitre
|
@@ -10,7 +10,7 @@
|
|
10
10
|
# test:
|
11
11
|
# strategy:
|
12
12
|
# fail-fast: false
|
13
|
-
# matrix:
|
13
|
+
# matrix:
|
14
14
|
# platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
15
15
|
# ruby-version: ['2.6', '2.7']
|
16
16
|
# runs-on: ${{ matrix.platform }}
|
@@ -43,7 +43,7 @@ jobs:
|
|
43
43
|
test:
|
44
44
|
strategy:
|
45
45
|
fail-fast: false
|
46
|
-
matrix:
|
46
|
+
matrix:
|
47
47
|
platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
48
48
|
ruby-version: ['2.6', '2.7']
|
49
49
|
runs-on: ${{ matrix.platform }}
|
@@ -61,13 +61,12 @@ jobs:
|
|
61
61
|
if: matrix.platform == 'windows-latest'
|
62
62
|
run: |
|
63
63
|
# bundle install
|
64
|
-
# bundle info
|
64
|
+
# bundle info emass_client
|
65
65
|
# rspec spec --format documentation
|
66
66
|
echo "need to fix path to libcurl.dll"
|
67
67
|
- name: Testing on ${{ matrix.platform }} for Ruby ${{ matrix.ruby }}
|
68
68
|
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
|
69
69
|
run: |
|
70
70
|
bundle install
|
71
|
-
bundle info
|
71
|
+
bundle info emass_client
|
72
72
|
rspec spec --format documentation
|
73
|
-
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,51 +1,52 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
emasser (1.0.
|
5
|
-
activesupport
|
4
|
+
emasser (1.0.1)
|
5
|
+
activesupport (~> 6.1.4)
|
6
6
|
colorize
|
7
7
|
dotenv
|
8
|
+
emass_client
|
8
9
|
rubyzip
|
9
|
-
|
10
|
+
thor
|
10
11
|
|
11
12
|
PATH
|
12
13
|
remote: emass_client/ruby_client
|
13
14
|
specs:
|
14
|
-
|
15
|
+
emass_client (1.0.1)
|
15
16
|
json (~> 2.1, >= 2.1.0)
|
16
17
|
typhoeus (~> 1.0, >= 1.0.1)
|
17
18
|
|
18
19
|
GEM
|
19
20
|
remote: https://rubygems.org/
|
20
21
|
specs:
|
21
|
-
activesupport (6.1.4.
|
22
|
+
activesupport (6.1.4.4)
|
22
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
24
|
i18n (>= 1.6, < 2)
|
24
25
|
minitest (>= 5.1)
|
25
26
|
tzinfo (~> 2.0)
|
26
27
|
zeitwerk (~> 2.3)
|
27
28
|
ast (2.4.2)
|
28
|
-
bundler-audit (0.
|
29
|
+
bundler-audit (0.9.0.1)
|
29
30
|
bundler (>= 1.2.0, < 3)
|
30
31
|
thor (~> 1.0)
|
31
32
|
byebug (11.1.3)
|
32
33
|
colorize (0.8.1)
|
33
34
|
concurrent-ruby (1.1.9)
|
34
|
-
diff-lcs (1.
|
35
|
+
diff-lcs (1.5.0)
|
35
36
|
dotenv (2.7.6)
|
36
|
-
ethon (0.
|
37
|
+
ethon (0.15.0)
|
37
38
|
ffi (>= 1.15.0)
|
38
|
-
ffi (1.15.
|
39
|
-
i18n (1.8.
|
39
|
+
ffi (1.15.4)
|
40
|
+
i18n (1.8.11)
|
40
41
|
concurrent-ruby (~> 1.0)
|
41
|
-
json (2.
|
42
|
-
minitest (5.
|
43
|
-
parallel (1.
|
44
|
-
parser (3.0.
|
42
|
+
json (2.6.1)
|
43
|
+
minitest (5.15.0)
|
44
|
+
parallel (1.21.0)
|
45
|
+
parser (3.1.0.0)
|
45
46
|
ast (~> 2.4.1)
|
46
47
|
rainbow (3.0.0)
|
47
48
|
rake (13.0.6)
|
48
|
-
regexp_parser (2.
|
49
|
+
regexp_parser (2.2.0)
|
49
50
|
rexml (3.2.5)
|
50
51
|
rspec (3.10.0)
|
51
52
|
rspec-core (~> 3.10.0)
|
@@ -60,20 +61,20 @@ GEM
|
|
60
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
61
62
|
rspec-support (~> 3.10.0)
|
62
63
|
rspec-support (3.10.3)
|
63
|
-
rubocop (1.
|
64
|
+
rubocop (1.24.1)
|
64
65
|
parallel (~> 1.10)
|
65
66
|
parser (>= 3.0.0.0)
|
66
67
|
rainbow (>= 2.2.2, < 4.0)
|
67
68
|
regexp_parser (>= 1.8, < 3.0)
|
68
69
|
rexml
|
69
|
-
rubocop-ast (>= 1.
|
70
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
70
71
|
ruby-progressbar (~> 1.7)
|
71
72
|
unicode-display_width (>= 1.4.0, < 3.0)
|
72
|
-
rubocop-ast (1.
|
73
|
+
rubocop-ast (1.15.1)
|
73
74
|
parser (>= 3.0.1.1)
|
74
|
-
rubocop-minitest (0.
|
75
|
+
rubocop-minitest (0.17.0)
|
75
76
|
rubocop (>= 0.90, < 2.0)
|
76
|
-
rubocop-performance (1.
|
77
|
+
rubocop-performance (1.13.1)
|
77
78
|
rubocop (>= 1.7.0, < 2.0)
|
78
79
|
rubocop-ast (>= 0.4.0)
|
79
80
|
rubocop-rake (0.6.0)
|
@@ -85,17 +86,19 @@ GEM
|
|
85
86
|
ethon (>= 0.9.0)
|
86
87
|
tzinfo (2.0.4)
|
87
88
|
concurrent-ruby (~> 1.0)
|
88
|
-
unicode-display_width (2.
|
89
|
+
unicode-display_width (2.1.0)
|
89
90
|
yaml (0.2.0)
|
90
|
-
zeitwerk (2.
|
91
|
+
zeitwerk (2.5.3)
|
91
92
|
|
92
93
|
PLATFORMS
|
93
94
|
x64-mingw32
|
95
|
+
x86_64-darwin-20
|
94
96
|
|
95
97
|
DEPENDENCIES
|
96
98
|
bundler (~> 2.1)
|
97
99
|
bundler-audit (~> 0.7)
|
98
100
|
byebug
|
101
|
+
emass_client!
|
99
102
|
emasser!
|
100
103
|
rake (~> 13.0)
|
101
104
|
rspec (~> 3.10.0)
|
@@ -103,8 +106,7 @@ DEPENDENCIES
|
|
103
106
|
rubocop-minitest (~> 0.10)
|
104
107
|
rubocop-performance (~> 1.11)
|
105
108
|
rubocop-rake (~> 0.5)
|
106
|
-
swagger_client!
|
107
109
|
yaml (~> 0.2.0)
|
108
110
|
|
109
111
|
BUNDLED WITH
|
110
|
-
2.2.
|
112
|
+
2.2.32
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# emasser
|
2
2
|
![emasser Testing](https://github.com/mitre/emasser/actions/workflows/test-cli.yml/badge.svg)
|
3
|
-
![CodeQL Vulnerabilities and Errors](https://github.com/mitre/emasser/actions/workflows/codeql-analysis.yml/badge.svg)
|
3
|
+
![CodeQL Vulnerabilities and Errors](https://github.com/mitre/emasser/actions/workflows/codeql-analysis.yml/badge.svg)
|
4
4
|
![Docs Generation](https://github.com/mitre/emasser/actions/workflows/generate_docs.yml/badge.svg)
|
5
5
|
![Code Linter](https://github.com/mitre/emasser/actions/workflows/rubocop.yml/badge.svg)
|
6
6
|
## About
|
@@ -48,7 +48,7 @@ Installation Dependencies:
|
|
48
48
|
Runtime Dependencies:
|
49
49
|
* Ruby version 2.7 or greater.
|
50
50
|
* `rubyzip (latest version)`
|
51
|
-
* `
|
51
|
+
* `emass_client (latest version)`
|
52
52
|
* On Windows the `cURL` binary is required (libcurl.dll). Options to install cURL for the emasser CLI to work are:
|
53
53
|
- Download the curl for windows zip file from [curl x.x.x for Windows](https://curl.se/windows/)
|
54
54
|
- Go into the archive and browse to /bin
|
@@ -56,7 +56,7 @@ Runtime Dependencies:
|
|
56
56
|
- Extract the file into the Ruby installation /bin directory
|
57
57
|
- Rename the file to `libcurl.dll` if it has the `_x64` suffix
|
58
58
|
- Install [cURL for windows](https://community.chocolatey.org/packages/curl) and add the installation directory to the PATH.
|
59
|
-
|
59
|
+
|
60
60
|
|
61
61
|
To install:
|
62
62
|
```bash
|
@@ -95,7 +95,7 @@ Because interactions with the API are handled by a dependency, the bulk of `emas
|
|
95
95
|
|
96
96
|
Approved for Public Release; Distribution Unlimited. Case Number 18-3678.
|
97
97
|
|
98
|
-
### NOTICE
|
98
|
+
### NOTICE
|
99
99
|
|
100
100
|
MITRE hereby grants express written permission to use, reproduce, distribute, modify, and otherwise leverage this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.
|
101
101
|
|
data/emasser.gemspec
CHANGED
@@ -16,16 +16,17 @@ Gem::Specification.new do |spec|
|
|
16
16
|
# Specify which files should be added to the gem when it is released.
|
17
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
18
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
19
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(emass_client|test|spec|features)/}) }
|
20
20
|
end
|
21
21
|
spec.bindir = 'exe'
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
|
24
|
-
spec.add_runtime_dependency 'activesupport'
|
24
|
+
spec.add_runtime_dependency 'activesupport', '~> 6.1.4'
|
25
25
|
spec.add_runtime_dependency 'colorize'
|
26
26
|
spec.add_runtime_dependency 'dotenv'
|
27
27
|
spec.add_runtime_dependency 'rubyzip'
|
28
|
-
spec.add_runtime_dependency '
|
28
|
+
spec.add_runtime_dependency 'emass_client'
|
29
|
+
spec.add_runtime_dependency 'thor'
|
29
30
|
|
30
31
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
31
32
|
spec.add_development_dependency 'bundler-audit', '~> 0.7'
|
data/exe/emasser
CHANGED
File without changes
|
@@ -15,7 +15,7 @@ module Emasser
|
|
15
15
|
# rubocop: enable Style/RaiseArgs
|
16
16
|
|
17
17
|
# rubocop: disable Style/TernaryParentheses, Style/IfWithBooleanLiteralBranches
|
18
|
-
|
18
|
+
EmassClient.configure do |config|
|
19
19
|
config.api_key['api-key'] = raise_unless_present('EMASSER_API_KEY_API_KEY')
|
20
20
|
config.api_key['user-uid'] = raise_unless_present('EMASSER_API_KEY_USER_UID')
|
21
21
|
config.scheme = 'https'
|
data/lib/emasser/delete.rb
CHANGED
@@ -55,13 +55,13 @@ module Emasser
|
|
55
55
|
option :poamId, type: :numeric, required: true, desc: 'A numeric value representing the poam identification'
|
56
56
|
|
57
57
|
def remove
|
58
|
-
body =
|
58
|
+
body = EmassClient::DeletePoam.new
|
59
59
|
body.poam_id = options[:poamId]
|
60
60
|
body_array = Array.new(1, body)
|
61
61
|
|
62
|
-
result =
|
62
|
+
result = EmassClient::POAMApi.new.delete_poam(body_array, options[:systemId])
|
63
63
|
puts to_output_hash(result).green
|
64
|
-
rescue
|
64
|
+
rescue EmassClient::ApiError => e
|
65
65
|
puts 'Exception when calling POAMApi->delete_poam'.red
|
66
66
|
puts to_output_hash(e)
|
67
67
|
end
|
@@ -88,14 +88,14 @@ module Emasser
|
|
88
88
|
desc: 'A numeric value representing the milestone identification'
|
89
89
|
|
90
90
|
def remove
|
91
|
-
body =
|
91
|
+
body = EmassClient::DeleteMilestone.new
|
92
92
|
body.milestone_id = options[:milestoneId]
|
93
93
|
body_array = Array.new(1, body)
|
94
94
|
|
95
|
-
result =
|
95
|
+
result = EmassClient::MilestonesApi.new.delete_milestone(body_array, options[:systemId], options[:poamId])
|
96
96
|
# The server returns an empty object upon successfully deleting a milestone.
|
97
97
|
puts to_output_hash(result).green
|
98
|
-
rescue
|
98
|
+
rescue EmassClient::ApiError => e
|
99
99
|
puts 'Exception when calling MilestonesApi->delete_milestone'.red
|
100
100
|
puts to_output_hash(e)
|
101
101
|
end
|
@@ -125,9 +125,9 @@ module Emasser
|
|
125
125
|
body_array << obj
|
126
126
|
end
|
127
127
|
|
128
|
-
result =
|
128
|
+
result = EmassClient::ArtifactsApi.new.delete_artifact(body_array, options[:systemId])
|
129
129
|
puts to_output_hash(result).green
|
130
|
-
rescue
|
130
|
+
rescue EmassClient::ApiError => e
|
131
131
|
puts 'Exception when calling ArtifactsApi->delete_artifact'.red
|
132
132
|
puts to_output_hash(e)
|
133
133
|
end
|
data/lib/emasser/get.rb
CHANGED
@@ -40,9 +40,9 @@ module Emasser
|
|
40
40
|
desc 'connection', 'Test connection to the API'
|
41
41
|
|
42
42
|
def connection
|
43
|
-
result =
|
43
|
+
result = EmassClient::TestApi.new.test_connection
|
44
44
|
puts to_output_hash(result).green
|
45
|
-
rescue
|
45
|
+
rescue EmassClient::ApiError => e
|
46
46
|
puts 'Exception when calling TestApi->test_connection'.red
|
47
47
|
puts to_output_hash(e)
|
48
48
|
end
|
@@ -73,10 +73,10 @@ module Emasser
|
|
73
73
|
end
|
74
74
|
|
75
75
|
begin
|
76
|
-
results =
|
76
|
+
results = EmassClient::SystemsApi.new.get_systems.data
|
77
77
|
results = filter_systems(results, options[:system_name], options[:system_owner])
|
78
78
|
results.each { |result| puts "#{result[:systemId]} - #{result[:systemOwner]} - #{result[:name]}" }
|
79
|
-
rescue
|
79
|
+
rescue EmassClient::ApiError => e
|
80
80
|
puts 'Exception when calling SystemsApi->get_systems'
|
81
81
|
puts to_output_hash(e)
|
82
82
|
end
|
@@ -107,9 +107,9 @@ module Emasser
|
|
107
107
|
|
108
108
|
begin
|
109
109
|
# Get system information matching provided parameters
|
110
|
-
result =
|
110
|
+
result = EmassClient::SystemsApi.new.get_system(options[:systemId], optional_options)
|
111
111
|
puts to_output_hash(result).green
|
112
|
-
rescue
|
112
|
+
rescue EmassClient::ApiError => e
|
113
113
|
puts 'Exception when calling SystemsApi->get_systems'.red
|
114
114
|
puts to_output_hash(e)
|
115
115
|
end
|
@@ -144,9 +144,9 @@ module Emasser
|
|
144
144
|
|
145
145
|
begin
|
146
146
|
# Get system information matching provided parameters
|
147
|
-
result =
|
147
|
+
result = EmassClient::SystemsApi.new.get_systems(optional_options)
|
148
148
|
puts to_output_hash(result).green
|
149
|
-
rescue
|
149
|
+
rescue EmassClient::ApiError => e
|
150
150
|
puts 'Exception when calling SystemsApi->get_systems'.red
|
151
151
|
puts to_output_hash(e)
|
152
152
|
end
|
@@ -170,9 +170,9 @@ module Emasser
|
|
170
170
|
desc 'all', 'Retrieves all available system roles'
|
171
171
|
|
172
172
|
def all
|
173
|
-
result =
|
173
|
+
result = EmassClient::SystemRolesApi.new.get_system_roles
|
174
174
|
puts to_output_hash(result).green
|
175
|
-
rescue
|
175
|
+
rescue EmassClient::ApiError => e
|
176
176
|
puts 'Exception when calling SystemRolesApi->get_system_roles'.red
|
177
177
|
puts to_output_hash(e)
|
178
178
|
end
|
@@ -192,10 +192,10 @@ module Emasser
|
|
192
192
|
optional_options = to_input_hash(optional_options_keys, options)
|
193
193
|
|
194
194
|
begin
|
195
|
-
result =
|
196
|
-
|
195
|
+
result = EmassClient::SystemRolesApi.new.get_system_roles_by_category_id(options[:roleCategory],
|
196
|
+
options[:role], optional_options)
|
197
197
|
puts to_output_hash(result).green
|
198
|
-
rescue
|
198
|
+
rescue EmassClient::ApiError => e
|
199
199
|
puts 'Exception when calling SystemRolesApi->get_system_by_role_category_id'.red
|
200
200
|
puts to_output_hash(e)
|
201
201
|
end
|
@@ -226,9 +226,9 @@ module Emasser
|
|
226
226
|
optional_options = to_input_hash(optional_options_keys, options)
|
227
227
|
|
228
228
|
begin
|
229
|
-
result =
|
229
|
+
result = EmassClient::ControlsApi.new.get_system_controls(options[:systemId], optional_options)
|
230
230
|
puts to_output_hash(result).green
|
231
|
-
rescue
|
231
|
+
rescue EmassClient::ApiError => e
|
232
232
|
puts 'Exception when calling ControlsApi->get_system_controls'.red
|
233
233
|
puts to_output_hash(e)
|
234
234
|
end
|
@@ -259,9 +259,9 @@ module Emasser
|
|
259
259
|
optional_options = to_input_hash(optional_options_keys, options)
|
260
260
|
|
261
261
|
begin
|
262
|
-
result =
|
262
|
+
result = EmassClient::TestResultsApi.new.get_system_test_results(options[:systemId], optional_options)
|
263
263
|
puts to_output_hash(result).green
|
264
|
-
rescue
|
264
|
+
rescue EmassClient::ApiError => e
|
265
265
|
puts 'Exception when calling TestResultsApi->get_system_test_results'.red
|
266
266
|
puts to_output_hash(e)
|
267
267
|
end
|
@@ -298,9 +298,9 @@ module Emasser
|
|
298
298
|
optional_options = to_input_hash(optional_options_keys, options)
|
299
299
|
|
300
300
|
begin
|
301
|
-
result =
|
301
|
+
result = EmassClient::POAMApi.new.get_system_poams(options[:systemId], optional_options)
|
302
302
|
puts to_output_hash(result).green
|
303
|
-
rescue
|
303
|
+
rescue EmassClient::ApiError => e
|
304
304
|
puts 'Exception when calling POAMApi->get_system_poams'.red
|
305
305
|
puts to_output_hash(e)
|
306
306
|
end
|
@@ -315,9 +315,9 @@ module Emasser
|
|
315
315
|
desc: 'A numeric value representing the poam identification'
|
316
316
|
|
317
317
|
def byPoamId
|
318
|
-
result =
|
318
|
+
result = EmassClient::POAMApi.new.get_system_poams_by_poam_id(options[:systemId], options[:poamId])
|
319
319
|
puts to_output_hash(result).green
|
320
|
-
rescue
|
320
|
+
rescue EmassClient::ApiError => e
|
321
321
|
puts 'Exception when calling POAMApi->get_system_poams_by_poam_id'.red
|
322
322
|
puts to_output_hash(e)
|
323
323
|
end
|
@@ -351,10 +351,10 @@ module Emasser
|
|
351
351
|
|
352
352
|
begin
|
353
353
|
# Get milestones in one or many poa&m items in a system
|
354
|
-
result =
|
355
|
-
|
354
|
+
result = EmassClient::MilestonesApi.new.get_system_milestones_by_poam_id(options[:systemId],
|
355
|
+
options[:poamId], optional_options)
|
356
356
|
puts to_output_hash(result).green
|
357
|
-
rescue
|
357
|
+
rescue EmassClient::ApiError => e
|
358
358
|
puts 'Exception when calling MilestonesApi->get_system_milestones_by_poam_id'.red
|
359
359
|
puts to_output_hash(e)
|
360
360
|
end
|
@@ -371,11 +371,11 @@ module Emasser
|
|
371
371
|
desc: 'A numeric value representing the milestone identification'
|
372
372
|
|
373
373
|
def byMilestoneId
|
374
|
-
result =
|
374
|
+
result = EmassClient::MilestonesApi.new.get_system_milestones_by_poam_id_and_milestone_id(
|
375
375
|
options[:systemId], options[:poamId], options[:milestoneId]
|
376
376
|
)
|
377
377
|
puts to_output_hash(result).green
|
378
|
-
rescue
|
378
|
+
rescue EmassClient::ApiError => e
|
379
379
|
puts 'Exception when calling MilestonesApi->get_system_milestones_by_poam_id_and_milestone_id'.red
|
380
380
|
puts to_output_hash(e)
|
381
381
|
end
|
@@ -409,10 +409,10 @@ module Emasser
|
|
409
409
|
|
410
410
|
begin
|
411
411
|
# Get one or many artifacts in a system
|
412
|
-
result =
|
413
|
-
|
412
|
+
result = EmassClient::ArtifactsApi.new.get_system_artifacts(options[:systemId],
|
413
|
+
optional_options)
|
414
414
|
puts to_output_hash(result).green
|
415
|
-
rescue
|
415
|
+
rescue EmassClient::ApiError => e
|
416
416
|
puts 'Exception when calling ArtifactsApi->get_system_artifacts'.red
|
417
417
|
puts to_output_hash(e)
|
418
418
|
end
|
@@ -433,7 +433,7 @@ module Emasser
|
|
433
433
|
optional_options = to_input_hash(optional_options_keys, options)
|
434
434
|
optional_options.merge!(Emasser::GET_ARTIFACTS_RETURN_TYPE)
|
435
435
|
|
436
|
-
result =
|
436
|
+
result = EmassClient::ArtifactsExportApi.new.get_system_artifacts_export(
|
437
437
|
options[:systemId], options[:filename], optional_options
|
438
438
|
)
|
439
439
|
if options[:compress]
|
@@ -445,7 +445,7 @@ module Emasser
|
|
445
445
|
puts result.red
|
446
446
|
end
|
447
447
|
end
|
448
|
-
rescue
|
448
|
+
rescue EmassClient::ApiError => e
|
449
449
|
puts 'Exception when calling ArtifactsApi->get_system_artifacts_export'.red
|
450
450
|
puts to_output_hash(e)
|
451
451
|
end
|
@@ -479,9 +479,9 @@ module Emasser
|
|
479
479
|
|
480
480
|
begin
|
481
481
|
# Get location of one or many controls in CAC
|
482
|
-
result =
|
482
|
+
result = EmassClient::CACApi.new.get_system_cac(options[:systemId], optional_options)
|
483
483
|
puts to_output_hash(result).green
|
484
|
-
rescue
|
484
|
+
rescue EmassClient::ApiError => e
|
485
485
|
puts 'Exception when calling ApprovalChainApi->get_system_cac'.red
|
486
486
|
puts to_output_hash(e)
|
487
487
|
end
|
@@ -510,9 +510,9 @@ module Emasser
|
|
510
510
|
|
511
511
|
def package
|
512
512
|
# Get location of system package in PAC
|
513
|
-
result =
|
513
|
+
result = EmassClient::PACApi.new.get_system_pac(options[:systemId])
|
514
514
|
puts to_output_hash(result).green
|
515
|
-
rescue
|
515
|
+
rescue EmassClient::ApiError => e
|
516
516
|
puts 'Exception when calling ApprovalChainApi->get_system_'.red
|
517
517
|
puts to_output_hash(e)
|
518
518
|
end
|
@@ -535,9 +535,9 @@ module Emasser
|
|
535
535
|
option :sinceDate, type: :string, required: true, desc: 'The CMMC date. Unix date format'
|
536
536
|
|
537
537
|
def assessments
|
538
|
-
result =
|
538
|
+
result = EmassClient::CMMCAssessmentsApi.new.get_cmmc_assessments(options[:sinceDate])
|
539
539
|
puts to_output_hash(result).green
|
540
|
-
rescue
|
540
|
+
rescue EmassClient::ApiError => e
|
541
541
|
puts 'Exception when calling ApprovalChainApi->get_cmmc_assessments'.red
|
542
542
|
puts to_output_hash(e)
|
543
543
|
end
|
@@ -565,9 +565,9 @@ module Emasser
|
|
565
565
|
optional_options_keys = optional_options(@_initializer).keys
|
566
566
|
optional_options = to_input_hash(optional_options_keys, options)
|
567
567
|
|
568
|
-
result =
|
568
|
+
result = EmassClient::WorkflowDefinitionsApi.new.get_workflow_definitions(optional_options)
|
569
569
|
puts to_output_hash(result).green
|
570
|
-
rescue
|
570
|
+
rescue EmassClient::ApiError => e
|
571
571
|
puts 'Exception when calling ApprovalChainApi->get_workflow_definitions'.red
|
572
572
|
puts to_output_hash(e)
|
573
573
|
end
|
@@ -599,11 +599,11 @@ module Emasser
|
|
599
599
|
optional_options_keys = optional_options(@_initializer).keys
|
600
600
|
optional_options = to_input_hash(optional_options_keys, options)
|
601
601
|
|
602
|
-
result =
|
602
|
+
result = EmassClient::WorkflowInstancesApi.new.get_system_workflow_instances(
|
603
603
|
options[:systemId], optional_options
|
604
604
|
)
|
605
605
|
puts to_output_hash(result).green
|
606
|
-
rescue
|
606
|
+
rescue EmassClient::ApiError => e
|
607
607
|
puts 'Exception when calling ApprovalChainApi->get_system_workflow_instances'.red
|
608
608
|
puts to_output_hash(e)
|
609
609
|
end
|
@@ -618,11 +618,11 @@ module Emasser
|
|
618
618
|
desc: 'A numeric value representing the workflowInstance identification'
|
619
619
|
|
620
620
|
def byWorkflowInstanceId
|
621
|
-
result =
|
621
|
+
result = EmassClient::WorkflowInstancesApi.new.get_system_workflow_instances_by_workflow_instance_id(
|
622
622
|
options[:systemId], options[:workflowInstanceId]
|
623
623
|
)
|
624
624
|
puts to_output_hash(result).green
|
625
|
-
rescue
|
625
|
+
rescue EmassClient::ApiError => e
|
626
626
|
puts 'Exception when calling ApprovalChainApi->get_system_workflow_instances_by_workflow_instance_id'.red
|
627
627
|
puts to_output_hash(e)
|
628
628
|
end
|