Class: Amnesie::Process

Inherits:
Object
  • Object
show all
Defined in:
lib/amnesie/process.rb

Instance Method Summary collapse

Constructor Details

#initialize(card) ⇒ Process

Returns a new instance of Process.



5
6
7
8
9
10
# File 'lib/amnesie/process.rb', line 5

def initialize(card)
  @systemctl = Helpers::Exec.new("systemctl")
  @kill = Helpers::Exec.new("kill")
  @rm = Helpers::Exec.new("rm")
  @card = card
end

Instance Method Details

#killObject



12
13
14
15
# File 'lib/amnesie/process.rb', line 12

def kill
  kill_dhcpcd
  kill_dhclient
end

#restartObject



17
18
19
20
21
# File 'lib/amnesie/process.rb', line 17

def restart
  restart_dhcpcd
  restart_dhclient
  restart_tor
end