Sha256: 8777bf705d5b42141db200664edfcf8e2e708801a644baf0566b993d2d98f33a

Contents?: true

Size: 825 Bytes

Versions: 1

Compression:

Stored size: 825 Bytes

Contents

require 'KCommercialPipeline/command/command'
require 'KCommercialPipeline/core/kim_cfg'
require 'KCommercialPipeline/core/version_pipeline/release_branches'
module KCommercial
  module KCPipeline
    class Command
      class AutoReleaseCMD < Command
        attr_reader :app_id
        attr_reader :branch_name
        self.command =  'auto_release'
        self.version = KCommercialPipeline::VERSION
        self.summary = '自动拉取最新release分支'
        def self.options
          [
            ['--name', 'The new release branch name,defaut auto increase' ],
          ].concat(super )
        end

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

        def run
          AutoRelease.new(@branch_name).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/rb_auto.rb