Class: Wrapp::CLI
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
14 15 16 |
# File 'lib/wrapp/cli.rb', line 14 def run new.run(ARGV) end |
Instance Method Details
#run(argv) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/wrapp/cli.rb', line 19 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
30 31 32 |
# File 'lib/wrapp/cli.rb', line 30 def wrapp(*opts) DMGBuilder.new(*opts).create end |