File tree Expand file tree Collapse file tree 6 files changed +7
-0
lines changed Expand file tree Collapse file tree 6 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def html
48
48
html_p = OpenSCAP . ds_rds_session_get_html_report @session
49
49
OpenSCAP . raise! if OpenSCAP . error?
50
50
return nil if html_p . null?
51
+
51
52
html = html_p . read_string
52
53
OpenSCAP ::LibC . free html_p
53
54
html
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class Fix
6
6
def initialize ( raw )
7
7
raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } with '#{ raw } '" \
8
8
unless raw . is_a? ( FFI ::Pointer )
9
+
9
10
@raw = raw
10
11
end
11
12
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class Ident
6
6
def initialize ( raw )
7
7
raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } with '#{ raw } '" \
8
8
unless raw . is_a? ( FFI ::Pointer )
9
+
9
10
@raw = raw
10
11
end
11
12
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class Item
12
12
def self . build ( t )
13
13
raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } with #{ t } " \
14
14
unless t . is_a? ( FFI ::Pointer )
15
+
15
16
# This is Abstract base class that enables you to build its child
16
17
case OpenSCAP . xccdf_item_get_type t
17
18
when :group
@@ -27,6 +28,7 @@ def initialize(t)
27
28
if self . class == OpenSCAP ::Xccdf ::Item
28
29
raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } abstract base class."
29
30
end
31
+
30
32
@raw = t
31
33
end
32
34
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class Reference
6
6
def initialize ( raw )
7
7
raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } with '#{ raw } '" \
8
8
unless raw . is_a? ( FFI ::Pointer )
9
+
9
10
@raw = raw
10
11
end
11
12
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module Xccdf
5
5
class Session
6
6
def initialize ( input_filename )
7
7
raise OpenSCAPError , 'No filename specified!' unless input_filename
8
+
8
9
@input_filename = input_filename
9
10
@s = OpenSCAP . xccdf_session_new ( input_filename )
10
11
OpenSCAP . raise! if @s . null?
You can’t perform that action at this time.
0 commit comments