Sha256: 9a365621791b7de57d1096833b091d73b1acd3854f91d75c2838634b82f92583

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 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
      wrapp(app_path, config)
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wrapp-0.2.1 lib/wrapp/cli.rb