lib/lambom.rb in lambom-0.4.7 vs lib/lambom.rb in lambom-0.4.8

- old
+ new

@@ -11,27 +11,27 @@ require "lambom/api" require "lambom/converger" module Lambom - $debug = false + $debug = false - class << self - def run(argv) - puts "DEBUG ENABLED" if $debug - puts "Recived args: #{argv.inspect}" if $debug - raise 'Must be run as root' unless Process.uid == 0 + class << self + def run(argv) + puts "DEBUG ENABLED" if $debug + puts "Recived args: #{argv.inspect}" if $debug + raise 'Must be run as root' unless Process.uid == 0 - #cargar config - conf = Lambom::Config.new.load(argv) - - # executar converxencia - Lambom::Converger.new(conf).run - end + #cargar config + conf = Lambom::Config.new.load(argv) + + # executar converxencia + Lambom::Converger.new(conf).run + end - def enable_debug - $debug = true - end + def enable_debug + $debug = true end + end end