@@ -17,8 +17,8 @@ def sds?
1717
1818 def load ( opts = { } )
1919 o = {
20- : datastream_id => nil ,
21- : component_id => nil
20+ datastream_id : nil ,
21+ component_id : nil
2222 } . merge ( opts )
2323 if sds?
2424 OpenSCAP . xccdf_session_set_datastream_id ( @s , o [ :datastream_id ] )
@@ -45,12 +45,12 @@ def remediate
4545
4646 def export_results ( opts = { } )
4747 o = {
48- : rds_file => nil ,
49- : xccdf_file => nil ,
50- : report_file => nil ,
51- : oval_results => false ,
52- : oval_variables => false ,
53- : engines_results => false
48+ rds_file : nil ,
49+ xccdf_file : nil ,
50+ report_file : nil ,
51+ oval_results : false ,
52+ oval_variables : false ,
53+ engines_results : false
5454 } . merge! ( opts )
5555 export_targets o
5656 export
@@ -94,13 +94,13 @@ def export_targets(opts = {})
9494
9595 attach_function :xccdf_session_is_sds , [ :pointer ] , :bool
9696
97- attach_function :xccdf_session_set_profile_id , [ : pointer, : string] , :bool
98- attach_function :xccdf_session_set_datastream_id , [ : pointer, : string] , :void
99- attach_function :xccdf_session_set_component_id , [ : pointer, : string] , :void
100- attach_function :xccdf_session_set_arf_export , [ : pointer, : string] , :bool
101- attach_function :xccdf_session_set_xccdf_export , [ : pointer, : string] , :bool
102- attach_function :xccdf_session_set_report_export , [ : pointer, : string] , :bool
103- attach_function :xccdf_session_set_oval_variables_export , [ : pointer, : bool] , :void
104- attach_function :xccdf_session_set_oval_results_export , [ : pointer, : bool] , :void
105- attach_function :xccdf_session_set_check_engine_plugins_results_export , [ : pointer, : bool] , :void
97+ attach_function :xccdf_session_set_profile_id , %i[ pointer string ] , :bool
98+ attach_function :xccdf_session_set_datastream_id , %i[ pointer string ] , :void
99+ attach_function :xccdf_session_set_component_id , %i[ pointer string ] , :void
100+ attach_function :xccdf_session_set_arf_export , %i[ pointer string ] , :bool
101+ attach_function :xccdf_session_set_xccdf_export , %i[ pointer string ] , :bool
102+ attach_function :xccdf_session_set_report_export , %i[ pointer string ] , :bool
103+ attach_function :xccdf_session_set_oval_variables_export , %i[ pointer bool ] , :void
104+ attach_function :xccdf_session_set_oval_results_export , %i[ pointer bool ] , :void
105+ attach_function :xccdf_session_set_check_engine_plugins_results_export , %i[ pointer bool ] , :void
106106end
0 commit comments