class Zoom::SecurityProfile

Public Class Methods

new(n = nil, t = nil, f = nil, b = nil, a = nil) click to toggle source
Calls superclass method Zoom::Profile::new
# 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

Public Instance Methods

after(a = nil) click to toggle source
Calls superclass method Zoom::Profile#after
# File lib/zoom/security_profile.rb, line 2
def after(a = nil)
    super
    return @tool.after(a)
end
before(b = nil) click to toggle source
Calls superclass method Zoom::Profile#before
# File lib/zoom/security_profile.rb, line 7
def before(b = nil)
    super
    return @tool.before(b)
end
exe(header) click to toggle source
# File lib/zoom/security_profile.rb, line 12
def exe(header)
    sync
    return @tool.exe(header)
end
flags(f = nil) click to toggle source
Calls superclass method Zoom::Profile#flags
# File lib/zoom/security_profile.rb, line 17
def flags(f = nil)
    super
    return @tool.flags(f)
end
grep_like_format_flags(all = false) click to toggle source
Calls superclass method Zoom::Profile#grep_like_format_flags
# 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_files() click to toggle source
# 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) click to toggle source
# File lib/zoom/security_profile.rb, line 42
def preprocess(header)
    sync
    return @tool.preprocess(header)
end
tool(t = nil) click to toggle source
Calls superclass method Zoom::Profile#tool
# File lib/zoom/security_profile.rb, line 54
def tool(t = nil)
    super
    return @tool.tool(t)
end
translate(from) click to toggle source
# File lib/zoom/security_profile.rb, line 59
def translate(from)
    return @tool.translate(from)
end

Private Instance Methods

sync() click to toggle source
# File lib/zoom/security_profile.rb, line 47
def sync
    @tool.exts = @exts
    @tool.files = @files
    @tool.regex = @regex
end