Class: Wrapp::CLI
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
17 18 19 |
# File 'lib/wrapp/cli.rb', line 17 def run new.run(ARGV) end |
Instance Method Details
#run(argv) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/wrapp/cli.rb', line 22 def run(argv) app_path = (argv).first if app_path wrapp(app_path, config) else warn 'ERROR: App path is missing!' puts opt_parser exit 2 end end |
#wrapp(*opts) ⇒ Object
33 34 35 |
# File 'lib/wrapp/cli.rb', line 33 def wrapp(*opts) DMGBuilder.new(*opts).create end |