Sha256: 3c33a19bb919e5802f62d56b2455b50e9ee994f98a3aa52bca987fc822ee77ec
Contents?: true
Size: 1.81 KB
Versions: 1
Compression:
Stored size: 1.81 KB
Contents
require 'yaml' require 'pathname' require 'KCommercialPipeline/command/command' require 'KCommercialPipeline/core/component_publisher' module KCommercial module KCPipeline class Command class CommentPublisher < Command attr_accessor :component attr_accessor :type attr_accessor :influence attr_accessor :auto_version self.description = "用于商业化流水线iOS组件发布" self.version = KCommercialPipeline::VERSION self.command = 'publish' self.version = KCommercialPipeline::VERSION self.summary = '用于商业化流水线iOS组件发布' def self.options [ ['--component', "一键发布组件名称"], ['--type', "patch or alpha,default alpha"], ['--influence', "是否传递依赖,default NO"], ['--auto_version', "版本是否自增,default YES"] ].concat(super) end def initialize(argv) @component = argv.option('component') @type = argv.option('type') || 'alpha' @influence = argv.option('influence') || false @auto_version = argv.option('auto_version') || 'false' super end def run Publisher.new(@component,@type,@influence,@auto_version).publish end end end end end # class Publisher # attr_accessor :component #组件名称 # attr_accessor :auto_version #版本自增 # attr_accessor :version_type #组件正式 or 预发 # attr_accessor :influence #是否传递依赖 # # def publish # command = publish_command # out = `#{command}` # unless $?.exitstatus.zero? # raise '组件发布失败' # exist 1 # end # # puts '#{out}' # end # # def publish_command # # # end # # end # # end # Publisher.new().login
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
KCommercialPipeline-0.2.5.1 | lib/KCommercialPipeline/command/ios_publish_component.rb |