class Ardecy::Main
Public Class Methods
new(args)
click to toggle source
# File lib/ardecy.rb, line 11 def initialize(args) @cli = Options.new(args).options show_intent permission end
Public Instance Methods
bye()
click to toggle source
# File lib/ardecy.rb, line 25 def bye puts puts " -[ Bye - Ardecy v." + Ardecy::VERSION + " ]- " exit end
permission()
click to toggle source
# File lib/ardecy.rb, line 31 def permission return unless @cli[:fix] Ardecy::Guard.perm end
scan()
click to toggle source
# File lib/ardecy.rb, line 17 def scan Harden.sysctl(@cli) Harden.modules(@cli) Harden.permissions(@cli) Harden.mountpoint(@cli) Harden.cmdline(@cli) end
show_intent()
click to toggle source
# File lib/ardecy.rb, line 37 def show_intent audit = @cli[:audit] ||= false fixing = @cli[:fix] ||= false puts if audit || fixing print ' ====> ' print 'Audit ' if audit print 'Fixing ' if fixing print "System\n" end puts end