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