Sha256: 98610456bfefd2375b69215c2059a6b744841a9166045a568eea48517c846008
Contents?: true
Size: 693 Bytes
Versions: 7
Compression:
Stored size: 693 Bytes
Contents
module Wrapp class CLI include Mixlib::CLI banner "Usage: #{File.basename($0)} [options] APP_PATH" option :include_parent_dir, :long => '--include-parent-dir', :short => '-i', :description => "Include the App's parent directory in the DMG with all(!!!) content.", :boolean => true class << self def run new.run(ARGV) end end def run(argv) app_path = parse_options(argv).first if app_path wrapp(app_path, config) else warn 'ERROR: App path is missing!' puts opt_parser exit 2 end end def wrapp(*opts) DMGBuilder.new(*opts).create end end end
Version data entries
7 entries across 7 versions & 1 rubygems