Class: Ardecy::Main
- Inherits:
-
Object
- Object
- Ardecy::Main
- Defined in:
- lib/ardecy.rb
Instance Method Summary collapse
- #bye ⇒ Object
-
#initialize(args) ⇒ Main
constructor
A new instance of Main.
- #permission ⇒ Object
- #scan ⇒ Object
- #show_intent ⇒ Object
Constructor Details
Instance Method Details
#bye ⇒ Object
25 26 27 28 29 |
# File 'lib/ardecy.rb', line 25 def bye puts puts " -[ Bye - Ardecy v." + Ardecy::VERSION + " ]- " exit end |
#permission ⇒ Object
31 32 33 34 35 |
# File 'lib/ardecy.rb', line 31 def return unless @cli[:fix] Ardecy::Guard.perm end |
#scan ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/ardecy.rb', line 17 def scan Harden.sysctl(@cli) Harden.modules(@cli) Harden.(@cli) Harden.mountpoint(@cli) Harden.cmdline(@cli) end |
#show_intent ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 |
# 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 |