module Spior::Menu

Public Instance Methods

run() click to toggle source
# File lib/spior/menu.rb, line 5
  def run
    banner
    loop do
      Msg.head
      puts %q{Please select an option:

1. Redirect traffic through tor
2. Reload tor and change your ip
3. Clear and restore your files
4. Check info on your current ip
5. Quit}

      puts
      print ">> "
      case gets.chomp
      when '1'
        Spior::Iptables::Tor.new.run!
      when '2'
        Spior::Tor.restart
      when '3'
        Spior::Clear.all
      when '4'
        Spior::Status.info
      when '5'
        exit
      end
    end
  end

Private Instance Methods

banner() click to toggle source