Sha256: e48d0abfcf5d337df66fd567eecefdbcc96d071cbe958e62237bd8d3456f5ecf

Contents?: true

Size: 939 Bytes

Versions: 1

Compression:

Stored size: 939 Bytes

Contents

require 'KCommercialPipeline/command/command'
require 'KCommercialPipeline/core/kim_cfg'
require 'KCommercialPipeline/core/version_pipeline/release_check'
module KCommercial
  module KCPipeline
    class Command
      class CheckReleaseCMD < Command
        attr_reader :branch_name
        self.command =  'check_release'
        self.version = KCommercialPipeline::VERSION
        self.summary = '校验release分支代码是否同步到develop'
        def self.options
          [
            %w[--branch_name 需要校验的release分支,选填],
          ].concat(super )
        end

        def initialize(argv)
          @branch_name =  argv.option('branch_name') || ""
          super
        end

        def run
          if @branch_name.nil? || @branch_name.empty?
            ReleaseCheck.new().check_all
          else
            ReleaseChecker.new(@branch_name).run!
          end

        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/check_release_cmd.rb