lib/lambom.rb in lambom-0.1.1 vs lib/lambom.rb in lambom-0.1.2
- old
+ new
@@ -17,10 +17,11 @@
class << self
def run(argv)
puts "DEBUG ENABLED" if $debug
puts "args recibidos #{argv.inspect}" if $debug
-
+ raise 'Must run as root' unless Process.uid == 0
+
#cargar config
conf = Lambom::Config.new.load
# sobreescribimos a configuracion ca linea de comandos
conf.merge(argv)