Class: Wrapp::CLI

Inherits:
Object
  • Object
show all
Includes:
Mixlib::CLI
Defined in:
lib/wrapp/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



9
10
11
# File 'lib/wrapp/cli.rb', line 9

def run
  new.run(ARGV)
end

Instance Method Details

#run(argv) ⇒ Object



14
15
16
17
# File 'lib/wrapp/cli.rb', line 14

def run(argv)
  app_path = parse_options(argv).first
  wrapp(app_path, config)
end

#wrapp(*opts) ⇒ Object



19
20
21
# File 'lib/wrapp/cli.rb', line 19

def wrapp(*opts)
  DMGBuilder.new(*opts).create
end