emasser 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (411) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +6 -2
  3. data/.github/workflows/test-cli.yml +4 -5
  4. data/.gitignore +1 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +26 -24
  7. data/README.md +4 -4
  8. data/emasser.gemspec +4 -3
  9. data/exe/emasser +0 -0
  10. data/lib/emasser/configuration.rb +1 -1
  11. data/lib/emasser/delete.rb +8 -8
  12. data/lib/emasser/get.rb +43 -43
  13. data/lib/emasser/post.rb +29 -29
  14. data/lib/emasser/put.rb +14 -14
  15. data/lib/emasser/version.rb +1 -1
  16. data/lib/emasser.rb +1 -1
  17. metadata +20 -400
  18. data/TAGS +0 -2393
  19. data/emass_client/eMASSRestOpenApi.yaml +0 -5698
  20. data/emass_client/ruby_client/.gitignore +0 -39
  21. data/emass_client/ruby_client/.rspec +0 -2
  22. data/emass_client/ruby_client/.rubocop.yml +0 -154
  23. data/emass_client/ruby_client/.swagger-codegen/VERSION +0 -1
  24. data/emass_client/ruby_client/.swagger-codegen-ignore +0 -23
  25. data/emass_client/ruby_client/Gemfile +0 -9
  26. data/emass_client/ruby_client/README.md +0 -1284
  27. data/emass_client/ruby_client/Rakefile +0 -8
  28. data/emass_client/ruby_client/docs/ArtifactsApi.md +0 -284
  29. data/emass_client/ruby_client/docs/ArtifactsDelete.md +0 -6
  30. data/emass_client/ruby_client/docs/ArtifactsDeleteInner.md +0 -7
  31. data/emass_client/ruby_client/docs/ArtifactsExportApi.md +0 -76
  32. data/emass_client/ruby_client/docs/ArtifactsGet.md +0 -20
  33. data/emass_client/ruby_client/docs/ArtifactsRequestPutBody.md +0 -16
  34. data/emass_client/ruby_client/docs/ArtifactsResponseDel.md +0 -8
  35. data/emass_client/ruby_client/docs/ArtifactsResponseDelData.md +0 -9
  36. data/emass_client/ruby_client/docs/ArtifactsResponseGet.md +0 -8
  37. data/emass_client/ruby_client/docs/ArtifactsResponsePutPost.md +0 -8
  38. data/emass_client/ruby_client/docs/CACApi.md +0 -140
  39. data/emass_client/ruby_client/docs/CMMCAssessmentsApi.md +0 -71
  40. data/emass_client/ruby_client/docs/CacGet.md +0 -13
  41. data/emass_client/ruby_client/docs/CacRequestPostBody.md +0 -8
  42. data/emass_client/ruby_client/docs/CacResponseGet.md +0 -8
  43. data/emass_client/ruby_client/docs/CacResponsePost.md +0 -8
  44. data/emass_client/ruby_client/docs/CacResponsePostData.md +0 -9
  45. data/emass_client/ruby_client/docs/CmmcGet.md +0 -19
  46. data/emass_client/ruby_client/docs/CmmcResponseGet.md +0 -8
  47. data/emass_client/ruby_client/docs/ConnectivityCcsd.md +0 -8
  48. data/emass_client/ruby_client/docs/ControlsApi.md +0 -140
  49. data/emass_client/ruby_client/docs/ControlsGet.md +0 -36
  50. data/emass_client/ruby_client/docs/ControlsPut.md +0 -9
  51. data/emass_client/ruby_client/docs/ControlsRequestPutBody.md +0 -29
  52. data/emass_client/ruby_client/docs/ControlsResponseGet.md +0 -8
  53. data/emass_client/ruby_client/docs/ControlsResponsePut.md +0 -8
  54. data/emass_client/ruby_client/docs/DefinitionTransitions.md +0 -9
  55. data/emass_client/ruby_client/docs/DeleteMilestone.md +0 -7
  56. data/emass_client/ruby_client/docs/DeletePoam.md +0 -7
  57. data/emass_client/ruby_client/docs/Empty200Response.md +0 -6
  58. data/emass_client/ruby_client/docs/Error.md +0 -8
  59. data/emass_client/ruby_client/docs/InstancesTransitions.md +0 -12
  60. data/emass_client/ruby_client/docs/MilestoneResponseGet.md +0 -8
  61. data/emass_client/ruby_client/docs/MilestoneResponsePost.md +0 -8
  62. data/emass_client/ruby_client/docs/MilestoneResponsePut.md +0 -8
  63. data/emass_client/ruby_client/docs/MilestonesApi.md +0 -350
  64. data/emass_client/ruby_client/docs/MilestonesDelete.md +0 -6
  65. data/emass_client/ruby_client/docs/MilestonesGet.md +0 -12
  66. data/emass_client/ruby_client/docs/MilestonesPost.md +0 -6
  67. data/emass_client/ruby_client/docs/MilestonesPut.md +0 -6
  68. data/emass_client/ruby_client/docs/MilestonesPutPostDelete.md +0 -11
  69. data/emass_client/ruby_client/docs/MilestonesRequestPostBody.md +0 -9
  70. data/emass_client/ruby_client/docs/MilestonesRequestPutBody.md +0 -9
  71. data/emass_client/ruby_client/docs/MilestonesRequiredPost.md +0 -8
  72. data/emass_client/ruby_client/docs/MilestonesRequiredPut.md +0 -9
  73. data/emass_client/ruby_client/docs/Model200.md +0 -7
  74. data/emass_client/ruby_client/docs/Model201.md +0 -7
  75. data/emass_client/ruby_client/docs/Model201Meta.md +0 -8
  76. data/emass_client/ruby_client/docs/Model400.md +0 -7
  77. data/emass_client/ruby_client/docs/Model400Meta.md +0 -8
  78. data/emass_client/ruby_client/docs/Model400Response.md +0 -7
  79. data/emass_client/ruby_client/docs/Model401.md +0 -7
  80. data/emass_client/ruby_client/docs/Model401Meta.md +0 -8
  81. data/emass_client/ruby_client/docs/Model403.md +0 -7
  82. data/emass_client/ruby_client/docs/Model403Meta.md +0 -8
  83. data/emass_client/ruby_client/docs/Model404.md +0 -8
  84. data/emass_client/ruby_client/docs/Model404Response.md +0 -7
  85. data/emass_client/ruby_client/docs/Model405.md +0 -7
  86. data/emass_client/ruby_client/docs/Model405Meta.md +0 -8
  87. data/emass_client/ruby_client/docs/Model411.md +0 -7
  88. data/emass_client/ruby_client/docs/Model411Meta.md +0 -8
  89. data/emass_client/ruby_client/docs/Model490.md +0 -7
  90. data/emass_client/ruby_client/docs/Model490Meta.md +0 -8
  91. data/emass_client/ruby_client/docs/Model500.md +0 -7
  92. data/emass_client/ruby_client/docs/Model500Meta.md +0 -8
  93. data/emass_client/ruby_client/docs/PACApi.md +0 -137
  94. data/emass_client/ruby_client/docs/POAMApi.md +0 -346
  95. data/emass_client/ruby_client/docs/PacGet.md +0 -14
  96. data/emass_client/ruby_client/docs/PacPost.md +0 -9
  97. data/emass_client/ruby_client/docs/PacRequestPostBody.md +0 -9
  98. data/emass_client/ruby_client/docs/PacResponseGet.md +0 -8
  99. data/emass_client/ruby_client/docs/PacResponsePost.md +0 -8
  100. data/emass_client/ruby_client/docs/PoamDelete.md +0 -6
  101. data/emass_client/ruby_client/docs/PoamGet.md +0 -39
  102. data/emass_client/ruby_client/docs/PoamPost.md +0 -6
  103. data/emass_client/ruby_client/docs/PoamPostPutDel.md +0 -10
  104. data/emass_client/ruby_client/docs/PoamPut.md +0 -6
  105. data/emass_client/ruby_client/docs/PoamRequestPostBody.md +0 -6
  106. data/emass_client/ruby_client/docs/PoamRequestPutBody.md +0 -6
  107. data/emass_client/ruby_client/docs/PoamRequiredPost.md +0 -32
  108. data/emass_client/ruby_client/docs/PoamRequiredPut.md +0 -35
  109. data/emass_client/ruby_client/docs/PoamResponseDelete.md +0 -8
  110. data/emass_client/ruby_client/docs/PoamResponseGet.md +0 -8
  111. data/emass_client/ruby_client/docs/PoamResponsePost.md +0 -8
  112. data/emass_client/ruby_client/docs/PoamResponsePut.md +0 -8
  113. data/emass_client/ruby_client/docs/Register.md +0 -8
  114. data/emass_client/ruby_client/docs/RegisterData.md +0 -7
  115. data/emass_client/ruby_client/docs/RegisterUserRequestPostBody.md +0 -7
  116. data/emass_client/ruby_client/docs/RegistrationApi.md +0 -71
  117. data/emass_client/ruby_client/docs/RoleCategory.md +0 -10
  118. data/emass_client/ruby_client/docs/Roles.md +0 -9
  119. data/emass_client/ruby_client/docs/Ssps.md +0 -9
  120. data/emass_client/ruby_client/docs/Stage.md +0 -8
  121. data/emass_client/ruby_client/docs/StaticCodeApplication.md +0 -12
  122. data/emass_client/ruby_client/docs/StaticCodeRequestPostBody.md +0 -6
  123. data/emass_client/ruby_client/docs/StaticCodeRequiredPost.md +0 -8
  124. data/emass_client/ruby_client/docs/StaticCodeRequiredPostApplication.md +0 -8
  125. data/emass_client/ruby_client/docs/StaticCodeScansApi.md +0 -73
  126. data/emass_client/ruby_client/docs/Success200Response.md +0 -8
  127. data/emass_client/ruby_client/docs/SystemIdArtifactsBody.md +0 -10
  128. data/emass_client/ruby_client/docs/SystemResponse.md +0 -8
  129. data/emass_client/ruby_client/docs/SystemRolesApi.md +0 -137
  130. data/emass_client/ruby_client/docs/SystemRolesCategoryResponse.md +0 -8
  131. data/emass_client/ruby_client/docs/SystemRolesResponse.md +0 -8
  132. data/emass_client/ruby_client/docs/SystemRolesResponseData.md +0 -8
  133. data/emass_client/ruby_client/docs/Systems.md +0 -70
  134. data/emass_client/ruby_client/docs/SystemsApi.md +0 -155
  135. data/emass_client/ruby_client/docs/Test.md +0 -8
  136. data/emass_client/ruby_client/docs/TestApi.md +0 -66
  137. data/emass_client/ruby_client/docs/TestData.md +0 -7
  138. data/emass_client/ruby_client/docs/TestResultsApi.md +0 -144
  139. data/emass_client/ruby_client/docs/TestResultsGet.md +0 -15
  140. data/emass_client/ruby_client/docs/TestResultsPost.md +0 -9
  141. data/emass_client/ruby_client/docs/TestResultsRequestPostBody.md +0 -11
  142. data/emass_client/ruby_client/docs/TestResultsResponseGet.md +0 -8
  143. data/emass_client/ruby_client/docs/TestResultsResponsePost.md +0 -8
  144. data/emass_client/ruby_client/docs/Users.md +0 -9
  145. data/emass_client/ruby_client/docs/WorkflowDefinitionGet.md +0 -11
  146. data/emass_client/ruby_client/docs/WorkflowDefinitionResponseGet.md +0 -8
  147. data/emass_client/ruby_client/docs/WorkflowDefinitionsApi.md +0 -74
  148. data/emass_client/ruby_client/docs/WorkflowInstancesApi.md +0 -146
  149. data/emass_client/ruby_client/docs/WorkflowInstancesGet.md +0 -16
  150. data/emass_client/ruby_client/docs/WorkflowInstancesResponseGet.md +0 -8
  151. data/emass_client/ruby_client/git_push.sh +0 -55
  152. data/emass_client/ruby_client/lib/swagger_client/api/artifacts_api.rb +0 -310
  153. data/emass_client/ruby_client/lib/swagger_client/api/artifacts_export_api.rb +0 -86
  154. data/emass_client/ruby_client/lib/swagger_client/api/cac_api.rb +0 -143
  155. data/emass_client/ruby_client/lib/swagger_client/api/cmmc_assessments_api.rb +0 -77
  156. data/emass_client/ruby_client/lib/swagger_client/api/controls_api.rb +0 -143
  157. data/emass_client/ruby_client/lib/swagger_client/api/milestones_api.rb +0 -366
  158. data/emass_client/ruby_client/lib/swagger_client/api/pac_api.rb +0 -140
  159. data/emass_client/ruby_client/lib/swagger_client/api/poam_api.rb +0 -345
  160. data/emass_client/ruby_client/lib/swagger_client/api/registration_api.rb +0 -78
  161. data/emass_client/ruby_client/lib/swagger_client/api/static_code_scans_api.rb +0 -84
  162. data/emass_client/ruby_client/lib/swagger_client/api/system_roles_api.rb +0 -150
  163. data/emass_client/ruby_client/lib/swagger_client/api/systems_api.rb +0 -162
  164. data/emass_client/ruby_client/lib/swagger_client/api/test_api.rb +0 -70
  165. data/emass_client/ruby_client/lib/swagger_client/api/test_results_api.rb +0 -149
  166. data/emass_client/ruby_client/lib/swagger_client/api/workflow_definitions_api.rb +0 -76
  167. data/emass_client/ruby_client/lib/swagger_client/api/workflow_instances_api.rb +0 -153
  168. data/emass_client/ruby_client/lib/swagger_client/api_client.rb +0 -389
  169. data/emass_client/ruby_client/lib/swagger_client/api_error.rb +0 -57
  170. data/emass_client/ruby_client/lib/swagger_client/configuration.rb +0 -224
  171. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete.rb +0 -201
  172. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete_inner.rb +0 -207
  173. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_get.rb +0 -383
  174. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_request_put_body.rb +0 -363
  175. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del.rb +0 -217
  176. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del_data.rb +0 -225
  177. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_get.rb +0 -217
  178. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_put_post.rb +0 -217
  179. data/emass_client/ruby_client/lib/swagger_client/models/cac_get.rb +0 -301
  180. data/emass_client/ruby_client/lib/swagger_client/models/cac_request_post_body.rb +0 -217
  181. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_get.rb +0 -217
  182. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post.rb +0 -217
  183. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post_data.rb +0 -225
  184. data/emass_client/ruby_client/lib/swagger_client/models/cmmc_get.rb +0 -398
  185. data/emass_client/ruby_client/lib/swagger_client/models/cmmc_response_get.rb +0 -217
  186. data/emass_client/ruby_client/lib/swagger_client/models/connectivity_ccsd.rb +0 -217
  187. data/emass_client/ruby_client/lib/swagger_client/models/controls_get.rb +0 -663
  188. data/emass_client/ruby_client/lib/swagger_client/models/controls_put.rb +0 -227
  189. data/emass_client/ruby_client/lib/swagger_client/models/controls_request_put_body.rb +0 -606
  190. data/emass_client/ruby_client/lib/swagger_client/models/controls_response_get.rb +0 -217
  191. data/emass_client/ruby_client/lib/swagger_client/models/controls_response_put.rb +0 -217
  192. data/emass_client/ruby_client/lib/swagger_client/models/definition_transitions.rb +0 -274
  193. data/emass_client/ruby_client/lib/swagger_client/models/delete_milestone.rb +0 -212
  194. data/emass_client/ruby_client/lib/swagger_client/models/delete_poam.rb +0 -212
  195. data/emass_client/ruby_client/lib/swagger_client/models/empty200_response.rb +0 -197
  196. data/emass_client/ruby_client/lib/swagger_client/models/error.rb +0 -225
  197. data/emass_client/ruby_client/lib/swagger_client/models/instances_transitions.rb +0 -327
  198. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_get.rb +0 -217
  199. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_post.rb +0 -217
  200. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_put.rb +0 -217
  201. data/emass_client/ruby_client/lib/swagger_client/models/milestones_delete.rb +0 -197
  202. data/emass_client/ruby_client/lib/swagger_client/models/milestones_get.rb +0 -291
  203. data/emass_client/ruby_client/lib/swagger_client/models/milestones_post.rb +0 -197
  204. data/emass_client/ruby_client/lib/swagger_client/models/milestones_put.rb +0 -197
  205. data/emass_client/ruby_client/lib/swagger_client/models/milestones_put_post_delete.rb +0 -247
  206. data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_post_body.rb +0 -242
  207. data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_put_body.rb +0 -242
  208. data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_post.rb +0 -227
  209. data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_put.rb +0 -242
  210. data/emass_client/ruby_client/lib/swagger_client/models/model_200.rb +0 -208
  211. data/emass_client/ruby_client/lib/swagger_client/models/model_201.rb +0 -206
  212. data/emass_client/ruby_client/lib/swagger_client/models/model_201_meta.rb +0 -219
  213. data/emass_client/ruby_client/lib/swagger_client/models/model_400.rb +0 -206
  214. data/emass_client/ruby_client/lib/swagger_client/models/model_400_meta.rb +0 -219
  215. data/emass_client/ruby_client/lib/swagger_client/models/model_400_response.rb +0 -206
  216. data/emass_client/ruby_client/lib/swagger_client/models/model_401.rb +0 -206
  217. data/emass_client/ruby_client/lib/swagger_client/models/model_401_meta.rb +0 -219
  218. data/emass_client/ruby_client/lib/swagger_client/models/model_403.rb +0 -206
  219. data/emass_client/ruby_client/lib/swagger_client/models/model_403_meta.rb +0 -219
  220. data/emass_client/ruby_client/lib/swagger_client/models/model_404.rb +0 -219
  221. data/emass_client/ruby_client/lib/swagger_client/models/model_404_response.rb +0 -206
  222. data/emass_client/ruby_client/lib/swagger_client/models/model_405.rb +0 -206
  223. data/emass_client/ruby_client/lib/swagger_client/models/model_405_meta.rb +0 -219
  224. data/emass_client/ruby_client/lib/swagger_client/models/model_411.rb +0 -206
  225. data/emass_client/ruby_client/lib/swagger_client/models/model_411_meta.rb +0 -219
  226. data/emass_client/ruby_client/lib/swagger_client/models/model_490.rb +0 -206
  227. data/emass_client/ruby_client/lib/swagger_client/models/model_490_meta.rb +0 -219
  228. data/emass_client/ruby_client/lib/swagger_client/models/model_500.rb +0 -206
  229. data/emass_client/ruby_client/lib/swagger_client/models/model_500_meta.rb +0 -219
  230. data/emass_client/ruby_client/lib/swagger_client/models/pac_get.rb +0 -311
  231. data/emass_client/ruby_client/lib/swagger_client/models/pac_post.rb +0 -259
  232. data/emass_client/ruby_client/lib/swagger_client/models/pac_request_post_body.rb +0 -261
  233. data/emass_client/ruby_client/lib/swagger_client/models/pac_response_get.rb +0 -217
  234. data/emass_client/ruby_client/lib/swagger_client/models/pac_response_post.rb +0 -217
  235. data/emass_client/ruby_client/lib/swagger_client/models/poam_delete.rb +0 -197
  236. data/emass_client/ruby_client/lib/swagger_client/models/poam_get.rb +0 -646
  237. data/emass_client/ruby_client/lib/swagger_client/models/poam_post.rb +0 -197
  238. data/emass_client/ruby_client/lib/swagger_client/models/poam_post_put_del.rb +0 -237
  239. data/emass_client/ruby_client/lib/swagger_client/models/poam_put.rb +0 -197
  240. data/emass_client/ruby_client/lib/swagger_client/models/poam_request_post_body.rb +0 -197
  241. data/emass_client/ruby_client/lib/swagger_client/models/poam_request_put_body.rb +0 -197
  242. data/emass_client/ruby_client/lib/swagger_client/models/poam_required_post.rb +0 -564
  243. data/emass_client/ruby_client/lib/swagger_client/models/poam_required_put.rb +0 -594
  244. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_delete.rb +0 -217
  245. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_get.rb +0 -217
  246. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_post.rb +0 -217
  247. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_put.rb +0 -217
  248. data/emass_client/ruby_client/lib/swagger_client/models/register.rb +0 -215
  249. data/emass_client/ruby_client/lib/swagger_client/models/register_data.rb +0 -206
  250. data/emass_client/ruby_client/lib/swagger_client/models/register_user_request_post_body.rb +0 -211
  251. data/emass_client/ruby_client/lib/swagger_client/models/role_category.rb +0 -272
  252. data/emass_client/ruby_client/lib/swagger_client/models/roles.rb +0 -274
  253. data/emass_client/ruby_client/lib/swagger_client/models/ssps.rb +0 -227
  254. data/emass_client/ruby_client/lib/swagger_client/models/stage.rb +0 -252
  255. data/emass_client/ruby_client/lib/swagger_client/models/static_code_application.rb +0 -303
  256. data/emass_client/ruby_client/lib/swagger_client/models/static_code_request_post_body.rb +0 -197
  257. data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post.rb +0 -217
  258. data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post_application.rb +0 -217
  259. data/emass_client/ruby_client/lib/swagger_client/models/success200_response.rb +0 -217
  260. data/emass_client/ruby_client/lib/swagger_client/models/system_id_artifacts_body.rb +0 -284
  261. data/emass_client/ruby_client/lib/swagger_client/models/system_response.rb +0 -217
  262. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_category_response.rb +0 -217
  263. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response.rb +0 -217
  264. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response_data.rb +0 -219
  265. data/emass_client/ruby_client/lib/swagger_client/models/systems.rb +0 -1137
  266. data/emass_client/ruby_client/lib/swagger_client/models/test.rb +0 -215
  267. data/emass_client/ruby_client/lib/swagger_client/models/test_data.rb +0 -206
  268. data/emass_client/ruby_client/lib/swagger_client/models/test_results_get.rb +0 -333
  269. data/emass_client/ruby_client/lib/swagger_client/models/test_results_post.rb +0 -227
  270. data/emass_client/ruby_client/lib/swagger_client/models/test_results_request_post_body.rb +0 -306
  271. data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_get.rb +0 -217
  272. data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_post.rb +0 -217
  273. data/emass_client/ruby_client/lib/swagger_client/models/users.rb +0 -224
  274. data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_get.rb +0 -282
  275. data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_response_get.rb +0 -217
  276. data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_get.rb +0 -368
  277. data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_response_get.rb +0 -217
  278. data/emass_client/ruby_client/lib/swagger_client/version.rb +0 -14
  279. data/emass_client/ruby_client/lib/swagger_client.rb +0 -161
  280. data/emass_client/ruby_client/spec/api/artifacts_api_spec.rb +0 -92
  281. data/emass_client/ruby_client/spec/api/artifacts_export_api_spec.rb +0 -48
  282. data/emass_client/ruby_client/spec/api/cac_api_spec.rb +0 -60
  283. data/emass_client/ruby_client/spec/api/cmmc_assessments_api_spec.rb +0 -46
  284. data/emass_client/ruby_client/spec/api/controls_api_spec.rb +0 -60
  285. data/emass_client/ruby_client/spec/api/milestones_api_spec.rb +0 -105
  286. data/emass_client/ruby_client/spec/api/pac_api_spec.rb +0 -59
  287. data/emass_client/ruby_client/spec/api/poam_api_spec.rb +0 -103
  288. data/emass_client/ruby_client/spec/api/registration_api_spec.rb +0 -46
  289. data/emass_client/ruby_client/spec/api/static_code_scans_api_spec.rb +0 -47
  290. data/emass_client/ruby_client/spec/api/system_roles_api_spec.rb +0 -60
  291. data/emass_client/ruby_client/spec/api/systems_api_spec.rb +0 -67
  292. data/emass_client/ruby_client/spec/api/test_api_spec.rb +0 -45
  293. data/emass_client/ruby_client/spec/api/test_results_api_spec.rb +0 -62
  294. data/emass_client/ruby_client/spec/api/workflow_definitions_api_spec.rb +0 -47
  295. data/emass_client/ruby_client/spec/api/workflow_instances_api_spec.rb +0 -63
  296. data/emass_client/ruby_client/spec/api_client_spec.rb +0 -225
  297. data/emass_client/ruby_client/spec/base_object_spec.rb +0 -109
  298. data/emass_client/ruby_client/spec/configuration_spec.rb +0 -41
  299. data/emass_client/ruby_client/spec/models/artifacts_delete_inner_spec.rb +0 -40
  300. data/emass_client/ruby_client/spec/models/artifacts_delete_spec.rb +0 -34
  301. data/emass_client/ruby_client/spec/models/artifacts_get_spec.rb +0 -126
  302. data/emass_client/ruby_client/spec/models/artifacts_request_put_body_spec.rb +0 -102
  303. data/emass_client/ruby_client/spec/models/artifacts_response_del_data_spec.rb +0 -52
  304. data/emass_client/ruby_client/spec/models/artifacts_response_del_spec.rb +0 -46
  305. data/emass_client/ruby_client/spec/models/artifacts_response_get_spec.rb +0 -46
  306. data/emass_client/ruby_client/spec/models/artifacts_response_put_post_spec.rb +0 -46
  307. data/emass_client/ruby_client/spec/models/cac_get_spec.rb +0 -80
  308. data/emass_client/ruby_client/spec/models/cac_request_post_body_spec.rb +0 -46
  309. data/emass_client/ruby_client/spec/models/cac_response_get_spec.rb +0 -46
  310. data/emass_client/ruby_client/spec/models/cac_response_post_data_spec.rb +0 -52
  311. data/emass_client/ruby_client/spec/models/cac_response_post_spec.rb +0 -46
  312. data/emass_client/ruby_client/spec/models/cmmc_get_spec.rb +0 -128
  313. data/emass_client/ruby_client/spec/models/cmmc_response_get_spec.rb +0 -46
  314. data/emass_client/ruby_client/spec/models/connectivity_ccsd_spec.rb +0 -46
  315. data/emass_client/ruby_client/spec/models/controls_get_spec.rb +0 -262
  316. data/emass_client/ruby_client/spec/models/controls_put_spec.rb +0 -52
  317. data/emass_client/ruby_client/spec/models/controls_request_put_body_spec.rb +0 -216
  318. data/emass_client/ruby_client/spec/models/controls_response_get_spec.rb +0 -46
  319. data/emass_client/ruby_client/spec/models/controls_response_put_spec.rb +0 -46
  320. data/emass_client/ruby_client/spec/models/definition_transitions_spec.rb +0 -64
  321. data/emass_client/ruby_client/spec/models/delete_milestone_spec.rb +0 -40
  322. data/emass_client/ruby_client/spec/models/delete_poam_spec.rb +0 -40
  323. data/emass_client/ruby_client/spec/models/empty200_response_spec.rb +0 -34
  324. data/emass_client/ruby_client/spec/models/error_spec.rb +0 -46
  325. data/emass_client/ruby_client/spec/models/instances_transitions_spec.rb +0 -86
  326. data/emass_client/ruby_client/spec/models/milestone_response_get_spec.rb +0 -46
  327. data/emass_client/ruby_client/spec/models/milestone_response_post_spec.rb +0 -46
  328. data/emass_client/ruby_client/spec/models/milestone_response_put_spec.rb +0 -46
  329. data/emass_client/ruby_client/spec/models/milestones_delete_spec.rb +0 -34
  330. data/emass_client/ruby_client/spec/models/milestones_get_spec.rb +0 -74
  331. data/emass_client/ruby_client/spec/models/milestones_post_spec.rb +0 -34
  332. data/emass_client/ruby_client/spec/models/milestones_put_post_delete_spec.rb +0 -64
  333. data/emass_client/ruby_client/spec/models/milestones_put_spec.rb +0 -34
  334. data/emass_client/ruby_client/spec/models/milestones_request_post_body_spec.rb +0 -52
  335. data/emass_client/ruby_client/spec/models/milestones_request_put_body_spec.rb +0 -52
  336. data/emass_client/ruby_client/spec/models/milestones_required_post_spec.rb +0 -46
  337. data/emass_client/ruby_client/spec/models/milestones_required_put_spec.rb +0 -52
  338. data/emass_client/ruby_client/spec/models/model_200_spec.rb +0 -40
  339. data/emass_client/ruby_client/spec/models/model_201_meta_spec.rb +0 -46
  340. data/emass_client/ruby_client/spec/models/model_201_spec.rb +0 -40
  341. data/emass_client/ruby_client/spec/models/model_400_meta_spec.rb +0 -46
  342. data/emass_client/ruby_client/spec/models/model_400_response_spec.rb +0 -40
  343. data/emass_client/ruby_client/spec/models/model_400_spec.rb +0 -40
  344. data/emass_client/ruby_client/spec/models/model_401_meta_spec.rb +0 -46
  345. data/emass_client/ruby_client/spec/models/model_401_spec.rb +0 -40
  346. data/emass_client/ruby_client/spec/models/model_403_meta_spec.rb +0 -46
  347. data/emass_client/ruby_client/spec/models/model_403_spec.rb +0 -40
  348. data/emass_client/ruby_client/spec/models/model_404_response_spec.rb +0 -40
  349. data/emass_client/ruby_client/spec/models/model_404_spec.rb +0 -46
  350. data/emass_client/ruby_client/spec/models/model_405_meta_spec.rb +0 -46
  351. data/emass_client/ruby_client/spec/models/model_405_spec.rb +0 -40
  352. data/emass_client/ruby_client/spec/models/model_411_meta_spec.rb +0 -46
  353. data/emass_client/ruby_client/spec/models/model_411_spec.rb +0 -40
  354. data/emass_client/ruby_client/spec/models/model_490_meta_spec.rb +0 -46
  355. data/emass_client/ruby_client/spec/models/model_490_spec.rb +0 -40
  356. data/emass_client/ruby_client/spec/models/model_500_meta_spec.rb +0 -46
  357. data/emass_client/ruby_client/spec/models/model_500_spec.rb +0 -40
  358. data/emass_client/ruby_client/spec/models/pac_get_spec.rb +0 -86
  359. data/emass_client/ruby_client/spec/models/pac_post_spec.rb +0 -56
  360. data/emass_client/ruby_client/spec/models/pac_request_post_body_spec.rb +0 -56
  361. data/emass_client/ruby_client/spec/models/pac_response_get_spec.rb +0 -46
  362. data/emass_client/ruby_client/spec/models/pac_response_post_spec.rb +0 -46
  363. data/emass_client/ruby_client/spec/models/poam_delete_spec.rb +0 -34
  364. data/emass_client/ruby_client/spec/models/poam_get_spec.rb +0 -264
  365. data/emass_client/ruby_client/spec/models/poam_post_put_del_spec.rb +0 -58
  366. data/emass_client/ruby_client/spec/models/poam_post_spec.rb +0 -34
  367. data/emass_client/ruby_client/spec/models/poam_put_spec.rb +0 -34
  368. data/emass_client/ruby_client/spec/models/poam_request_post_body_spec.rb +0 -34
  369. data/emass_client/ruby_client/spec/models/poam_request_put_body_spec.rb +0 -34
  370. data/emass_client/ruby_client/spec/models/poam_required_post_spec.rb +0 -218
  371. data/emass_client/ruby_client/spec/models/poam_required_put_spec.rb +0 -236
  372. data/emass_client/ruby_client/spec/models/poam_response_delete_spec.rb +0 -46
  373. data/emass_client/ruby_client/spec/models/poam_response_get_spec.rb +0 -46
  374. data/emass_client/ruby_client/spec/models/poam_response_post_spec.rb +0 -46
  375. data/emass_client/ruby_client/spec/models/poam_response_put_spec.rb +0 -46
  376. data/emass_client/ruby_client/spec/models/register_data_spec.rb +0 -40
  377. data/emass_client/ruby_client/spec/models/register_spec.rb +0 -46
  378. data/emass_client/ruby_client/spec/models/register_user_request_post_body_spec.rb +0 -40
  379. data/emass_client/ruby_client/spec/models/role_category_spec.rb +0 -62
  380. data/emass_client/ruby_client/spec/models/roles_spec.rb +0 -60
  381. data/emass_client/ruby_client/spec/models/ssps_spec.rb +0 -52
  382. data/emass_client/ruby_client/spec/models/stage_spec.rb +0 -50
  383. data/emass_client/ruby_client/spec/models/static_code_application_spec.rb +0 -78
  384. data/emass_client/ruby_client/spec/models/static_code_request_post_body_spec.rb +0 -34
  385. data/emass_client/ruby_client/spec/models/static_code_required_post_application_spec.rb +0 -46
  386. data/emass_client/ruby_client/spec/models/static_code_required_post_spec.rb +0 -46
  387. data/emass_client/ruby_client/spec/models/success200_response_spec.rb +0 -46
  388. data/emass_client/ruby_client/spec/models/system_id_artifacts_body_spec.rb +0 -66
  389. data/emass_client/ruby_client/spec/models/system_response_spec.rb +0 -46
  390. data/emass_client/ruby_client/spec/models/system_roles_category_response_spec.rb +0 -46
  391. data/emass_client/ruby_client/spec/models/system_roles_response_data_spec.rb +0 -46
  392. data/emass_client/ruby_client/spec/models/system_roles_response_spec.rb +0 -46
  393. data/emass_client/ruby_client/spec/models/systems_spec.rb +0 -510
  394. data/emass_client/ruby_client/spec/models/test_data_spec.rb +0 -40
  395. data/emass_client/ruby_client/spec/models/test_results_get_spec.rb +0 -96
  396. data/emass_client/ruby_client/spec/models/test_results_post_spec.rb +0 -52
  397. data/emass_client/ruby_client/spec/models/test_results_request_post_body_spec.rb +0 -68
  398. data/emass_client/ruby_client/spec/models/test_results_response_get_spec.rb +0 -46
  399. data/emass_client/ruby_client/spec/models/test_results_response_post_spec.rb +0 -46
  400. data/emass_client/ruby_client/spec/models/test_spec.rb +0 -46
  401. data/emass_client/ruby_client/spec/models/users_spec.rb +0 -52
  402. data/emass_client/ruby_client/spec/models/workflow_definition_get_spec.rb +0 -68
  403. data/emass_client/ruby_client/spec/models/workflow_definition_response_get_spec.rb +0 -46
  404. data/emass_client/ruby_client/spec/models/workflow_instances_get_spec.rb +0 -110
  405. data/emass_client/ruby_client/spec/models/workflow_instances_response_get_spec.rb +0 -46
  406. data/emass_client/ruby_client/spec/spec_helper.rb +0 -110
  407. data/emass_client/ruby_client/swagger_client.gemspec +0 -38
  408. data/emass_client/swagger-codegen/ruby_template/api_client.mustache +0 -384
  409. data/emass_client/swagger-codegen/ruby_template/api_info.mustache +0 -12
  410. data/emass_client/swagger-codegen/ruby_template/configuration.mustache +0 -234
  411. 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: adf117509f0462e0242104ae66543567481509c3383f726a6c0a73b74ea38310
4
- data.tar.gz: c08b8f35507724880fb7aadfea9cdb2f8df07a4cc26b79e4eb535f562f3066fc
3
+ metadata.gz: 071f8617e2cb3f474beffbaab601a70efe914cf71a0a8a66bc519cb034b6ef2f
4
+ data.tar.gz: 004b1a45e63677cdf10740e129b0e1e4d4be8bc61e52db87b43e21f7364f564b
5
5
  SHA512:
6
- metadata.gz: 725f7442bc3178a14765bc4db1e5ee373e55edf53ea0f18a09128d32a194d52995aa73fb467a141426153a2f015d10829d52b1d33cd866826e0183cf6d172242
7
- data.tar.gz: 226662bf3779c58d4bd6e7f730fd0c2e0bf0520251ba1d191a0ae75293ba76196caa5d1d6fb6b9050532b7f9d33bad5531d84eb46d1a9c85e94ddf3c46d44a0c
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 git-lite-version-bump keycutter
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 gem
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 swagger_client
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 swagger_client
71
+ bundle info emass_client
72
72
  rspec spec --format documentation
73
-
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ emassing/test/test_example.zip
15
15
  .DS_Store
16
16
  .byebug_history
17
17
  .env
18
+ *.gem
data/Gemfile CHANGED
@@ -5,4 +5,4 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in emasser.gemspec
6
6
  gemspec
7
7
 
8
- gem 'swagger_client', path: './emass_client/ruby_client/'
8
+ gem 'emass_client', path: './emass_client/ruby_client/'
data/Gemfile.lock CHANGED
@@ -1,51 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- emasser (1.0.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
- swagger_client
10
+ thor
10
11
 
11
12
  PATH
12
13
  remote: emass_client/ruby_client
13
14
  specs:
14
- swagger_client (1.0.0)
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.1)
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.8.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.4.4)
35
+ diff-lcs (1.5.0)
35
36
  dotenv (2.7.6)
36
- ethon (0.14.0)
37
+ ethon (0.15.0)
37
38
  ffi (>= 1.15.0)
38
- ffi (1.15.3-x64-mingw32)
39
- i18n (1.8.10)
39
+ ffi (1.15.4)
40
+ i18n (1.8.11)
40
41
  concurrent-ruby (~> 1.0)
41
- json (2.5.1)
42
- minitest (5.14.4)
43
- parallel (1.20.1)
44
- parser (3.0.2.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.1.1)
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.20.0)
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.9.1, < 2.0)
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.11.0)
73
+ rubocop-ast (1.15.1)
73
74
  parser (>= 3.0.1.1)
74
- rubocop-minitest (0.15.0)
75
+ rubocop-minitest (0.17.0)
75
76
  rubocop (>= 0.90, < 2.0)
76
- rubocop-performance (1.11.5)
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.0.0)
89
+ unicode-display_width (2.1.0)
89
90
  yaml (0.2.0)
90
- zeitwerk (2.4.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.29
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
- * `swagger_client (latest version)` (Also referred to as `emass_client` and distributed via git only)
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 'swagger_client'
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
- SwaggerClient.configure do |config|
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'
@@ -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 = SwaggerClient::DeletePoam.new
58
+ body = EmassClient::DeletePoam.new
59
59
  body.poam_id = options[:poamId]
60
60
  body_array = Array.new(1, body)
61
61
 
62
- result = SwaggerClient::POAMApi.new.delete_poam(body_array, options[:systemId])
62
+ result = EmassClient::POAMApi.new.delete_poam(body_array, options[:systemId])
63
63
  puts to_output_hash(result).green
64
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::DeleteMilestone.new
91
+ body = EmassClient::DeleteMilestone.new
92
92
  body.milestone_id = options[:milestoneId]
93
93
  body_array = Array.new(1, body)
94
94
 
95
- result = SwaggerClient::MilestonesApi.new.delete_milestone(body_array, options[:systemId], options[:poamId])
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 SwaggerClient::ApiError => e
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 = SwaggerClient::ArtifactsApi.new.delete_artifact(body_array, options[:systemId])
128
+ result = EmassClient::ArtifactsApi.new.delete_artifact(body_array, options[:systemId])
129
129
  puts to_output_hash(result).green
130
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::TestApi.new.test_connection
43
+ result = EmassClient::TestApi.new.test_connection
44
44
  puts to_output_hash(result).green
45
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::SystemsApi.new.get_systems.data
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 SwaggerClient::ApiError => e
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 = SwaggerClient::SystemsApi.new.get_system(options[:systemId], optional_options)
110
+ result = EmassClient::SystemsApi.new.get_system(options[:systemId], optional_options)
111
111
  puts to_output_hash(result).green
112
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::SystemsApi.new.get_systems(optional_options)
147
+ result = EmassClient::SystemsApi.new.get_systems(optional_options)
148
148
  puts to_output_hash(result).green
149
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::SystemRolesApi.new.get_system_roles
173
+ result = EmassClient::SystemRolesApi.new.get_system_roles
174
174
  puts to_output_hash(result).green
175
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::SystemRolesApi.new.get_system_roles_by_category_id(options[:roleCategory],
196
- options[:role], optional_options)
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 SwaggerClient::ApiError => e
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 = SwaggerClient::ControlsApi.new.get_system_controls(options[:systemId], optional_options)
229
+ result = EmassClient::ControlsApi.new.get_system_controls(options[:systemId], optional_options)
230
230
  puts to_output_hash(result).green
231
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::TestResultsApi.new.get_system_test_results(options[:systemId], optional_options)
262
+ result = EmassClient::TestResultsApi.new.get_system_test_results(options[:systemId], optional_options)
263
263
  puts to_output_hash(result).green
264
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::POAMApi.new.get_system_poams(options[:systemId], optional_options)
301
+ result = EmassClient::POAMApi.new.get_system_poams(options[:systemId], optional_options)
302
302
  puts to_output_hash(result).green
303
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::POAMApi.new.get_system_poams_by_poam_id(options[:systemId], options[:poamId])
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 SwaggerClient::ApiError => e
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 = SwaggerClient::MilestonesApi.new.get_system_milestones_by_poam_id(options[:systemId],
355
- options[:poamId], optional_options)
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 SwaggerClient::ApiError => e
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 = SwaggerClient::MilestonesApi.new.get_system_milestones_by_poam_id_and_milestone_id(
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 SwaggerClient::ApiError => e
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 = SwaggerClient::ArtifactsApi.new.get_system_artifacts(options[:systemId],
413
- optional_options)
412
+ result = EmassClient::ArtifactsApi.new.get_system_artifacts(options[:systemId],
413
+ optional_options)
414
414
  puts to_output_hash(result).green
415
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::ArtifactsExportApi.new.get_system_artifacts_export(
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 SwaggerClient::ApiError => e
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 = SwaggerClient::CACApi.new.get_system_cac(options[:systemId], optional_options)
482
+ result = EmassClient::CACApi.new.get_system_cac(options[:systemId], optional_options)
483
483
  puts to_output_hash(result).green
484
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::PACApi.new.get_system_pac(options[:systemId])
513
+ result = EmassClient::PACApi.new.get_system_pac(options[:systemId])
514
514
  puts to_output_hash(result).green
515
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::CMMCAssessmentsApi.new.get_cmmc_assessments(options[:sinceDate])
538
+ result = EmassClient::CMMCAssessmentsApi.new.get_cmmc_assessments(options[:sinceDate])
539
539
  puts to_output_hash(result).green
540
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::WorkflowDefinitionsApi.new.get_workflow_definitions(optional_options)
568
+ result = EmassClient::WorkflowDefinitionsApi.new.get_workflow_definitions(optional_options)
569
569
  puts to_output_hash(result).green
570
- rescue SwaggerClient::ApiError => e
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 = SwaggerClient::WorkflowInstancesApi.new.get_system_workflow_instances(
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 SwaggerClient::ApiError => e
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 = SwaggerClient::WorkflowInstancesApi.new.get_system_workflow_instances_by_workflow_instance_id(
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 SwaggerClient::ApiError => e
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