Class: Wrappix::CLI
- Inherits:
-
Thor
- Object
- Thor
- Wrappix::CLI
- Defined in:
- lib/wrappix/cli.rb
Instance Method Summary collapse
Instance Method Details
#build(config_file) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/wrappix/cli.rb', line 9 def build(config_file) unless File.exist?(config_file) say "Error: El archivo de configuración no existe", :red exit(1) end if Wrappix.build(config_file) say "Wrapper generado correctamente", :green true else say "Error al generar el wrapper", :red false end end |