lib/sapos/print/cli.rb in sapos-print-1.1.2 vs lib/sapos/print/cli.rb in sapos-print-1.1.3

- old
+ new

@@ -35,13 +35,16 @@ config[:adapter] = ask("Adaptador: ", limited_to: ["console", "cups", "windows"]) config[:interface] = ask("Interface", limited_to: ["text", "escp"]) config[:user_id] = user_id config[:duplicate_control] = ask("¿Control Duplicados por MSGID?", limited_to: ["si", "no"]) config[:printers] = [config[:printer]] + config[:interfaces] = [config[:interface]] while yes?("¿Tiene impresoras adicionales?") name = ask("Nombre de la impresora adicional: ") + interface = ask("Interfaz de la impresora adicional: ", limited_to: ["text", "escp"]) config[:printers] << name + config[:interfaces] << interface end if yes?("¿Esta seguro que desea guardar la configuración?") Sapos::Print::Configuration.write(config) ap config say "La configuración ha sido guardada!" \ No newline at end of file