Class: Spior::Service::Enable

Inherits:
Object
  • Object
show all
Defined in:
lib/spior/service/enable.rb

Overview

Enable the Tor redirection when you boot your system

It should use and enable the services: + tor + iptables

Instance Method Summary collapse

Constructor Details

#initializeEnable

Returns a new instance of Enable.



14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/spior/service/enable.rb', line 14

def initialize
  case Nomansland.distro?
  when :gentoo
    for_gentoo
  when :archlinux
    for_arch
  when :void
    for_void
  when :debian
    for_debian
  else
    Msg.report 'Your distro is not yet supported.'
  end
end