Class: Zoom::SecurityProfile

Inherits:
Profile
  • Object
show all
Defined in:
lib/zoom/security_profile.rb

Defined Under Namespace

Classes: Passwords, UnsafeC, UnsafeJava, UnsafeJs, UnsafePhp, UnsafePython, UnsafeRuby

Instance Attribute Summary

Attributes inherited from Profile

#exts, #files, #format_flags, #regex, #taggable

Instance Method Summary collapse

Methods inherited from Profile

#class_name, from_json, #grep_like_tags?, #name, profile_by_name, subclasses, #to_s

Constructor Details

#initialize(n = nil, t = nil, f = nil, b = nil, a = nil) ⇒ SecurityProfile

Returns a new instance of SecurityProfile.



29
30
31
32
33
34
# File 'lib/zoom/security_profile.rb', line 29

def initialize(n = nil, t = nil, f = nil, b = nil, a = nil)
    clas = Zoom::ProfileManager.class_by_tool(t)
    clas ||= Zoom::ProfileManager.default_class
    @tool = Zoom::Profile.profile_by_name(clas).new(n)
    super(n, @tool.tool, f, b, a)
end

Instance Method Details

#after(a = nil) ⇒ Object



2
3
4
5
# File 'lib/zoom/security_profile.rb', line 2

def after(a = nil)
    super
    return @tool.after(a)
end

#before(b = nil) ⇒ Object



7
8
9
10
# File 'lib/zoom/security_profile.rb', line 7

def before(b = nil)
    super
    return @tool.before(b)
end

#exe(header) ⇒ Object



12
13
14
15
# File 'lib/zoom/security_profile.rb', line 12

def exe(header)
    sync
    return @tool.exe(header)
end

#flags(f = nil) ⇒ Object



17
18
19
20
# File 'lib/zoom/security_profile.rb', line 17

def flags(f = nil)
    super
    return @tool.flags(f)
end

#grep_like_format_flags(all = false) ⇒ Object



22
23
24
25
26
27
# File 'lib/zoom/security_profile.rb', line 22

def grep_like_format_flags(all = false)
    super
    @tool.grep_like_format_flags(all)
    @format_flags = @tool.format_flags
    @taggable = @tool.taggable
end

#only_exts_and_filesObject



36
37
38
39
40
# File 'lib/zoom/security_profile.rb', line 36

def only_exts_and_files
    @tool.exts = @exts
    @tool.files = @files
    return @tool.only_exts_and_files
end

#preprocess(header) ⇒ Object



42
43
44
45
# File 'lib/zoom/security_profile.rb', line 42

def preprocess(header)
    sync
    return @tool.preprocess(header)
end

#tool(t = nil) ⇒ Object



54
55
56
57
# File 'lib/zoom/security_profile.rb', line 54

def tool(t = nil)
    super
    return @tool.tool(t)
end

#translate(from) ⇒ Object



59
60
61
# File 'lib/zoom/security_profile.rb', line 59

def translate(from)
    return @tool.translate(from)
end