module Log2mail module Console::Commands class < ['command','description'], :rows => @@meths.sort puts @command_table true end desc "end console session" def quit; end def exit; end desc "show configuration" def config config_path = ask('configuration path? ').chomp config = Log2mail::Config.parse_config config_path puts "Defaults:" puts config.defaults puts "Settings:" puts config.formatted(false) puts "Effective settings:" puts config.formatted(true) end end end