Sha256: 8ae169b8ba778f384e2cdb4197630adc6bd98878c6ad300aa8f330aa8da1999f

Contents?: true

Size: 927 Bytes

Versions: 44

Compression:

Stored size: 927 Bytes

Contents

require 'cocoapods-tdfire-binary/binary_url_manager'

module Pod
	class Command
		class Binary < Command
			class Lib < Binary
				class Create < Lib
					self.abstract_command = false
					self.summary = '创建二进制模版库'
					self.description = <<-DESC
						创建二进制模版库
		      DESC

		      self.arguments = [
            CLAide::Argument.new('NAME', true),
        	]

        	def initialize(argv)
        		@name = argv.shift_argument
        		super
        	end

        	def validate!
        		super
        		help! "必须提供有效组件名称" if @name.nil?
        	end

        	def run
        		argvs = [
        			"--template-url=#{Pod::Tdfire::BinaryUrlManager.template_lib_url}",
        			@name
        		]

        		create = Pod::Command::Lib::Create.new(CLAide::ARGV.new(argvs))
            create.validate!
            create.run
        	end
		    end
		  end
		end
	end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
cocoapods-tdfire-binary-2.0.9 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-2.0.8 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-2.0.7 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-2.0.6 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-2.0.5 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-2.0.4 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-2.0.3 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.30 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.29 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.28 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.26 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.25 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.24 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.23 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.22 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.21 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.20 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.19 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.4.18 lib/cocoapods-tdfire-binary/command/lib/create.rb
cocoapods-tdfire-binary-1.3.18 lib/cocoapods-tdfire-binary/command/lib/create.rb