Module: Ardecy::Guard

Defined in:
lib/ardecy/guard.rb

Class Method Summary collapse

Class Method Details

.permObject



8
9
10
11
12
13
14
# File 'lib/ardecy/guard.rb', line 8

def self.perm
  uid = Process.uid
  raise BadPerm, 'Please, run this program as a root.' unless uid === 0
rescue BadPerm => e
  warn "\n#{e.class} > #{e}"
  exit 1
end