Sha256: 220e7dc78ee856fa82f7b7c317017a383a05053e75070a411a177d35f85e801d

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require 'KCommercialPipeline/command/command'
require 'KCommercialPipeline/core/app_demo'
module KCommercial
  module KCPipeline
    class Command
      class AppDemo < Command
        attr_accessor :app_id
        attr_accessor :build_type
        attr_accessor :keep_task_id
        attr_reader :addition_slices
        self.command =  'build_app'
        self.version = KCommercialPipeline::VERSION
        self.summary = 'iOS商业化一键打包脚本'
        def self.options
          [
            ['--build_type',"Debug or Release"],
            ['--keep_task_id',"keep组件任务id"],
            ['--slice=PATH', 'The path of the slice that is addition'],
          ].concat(super)
        end
        def initialize(argv)
          @build_type = argv.option('build_type')
          @keep_task_id = argv.option('keep_task_id') || 0
          @slice_paths = argv.all_options('slice')
          super
        end

        def run
          RunDemo.new(@build_type,@app_id,@keep_task_id,@slice_paths).run
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
KCommercialPipeline-0.2.5.1 lib/KCommercialPipeline/command/app_runner.rb