Sha256: 9fa1c073420a8d590c2e7ae3379ca5b411cc91a01e9bbe3a0e2ad4d1a839bc5f

Contents?: true

Size: 844 Bytes

Versions: 1

Compression:

Stored size: 844 Bytes

Contents

require 'cocoapods-tdfire-binary/binary_url_manager'
require 'cocoapods-tdfire-binary/init_asker'

module Pod
  class Command
    class Binary < Command
      class Init < Binary

        self.abstract_command = false
        self.summary = '初始化二进制插件'
        self.description = <<-DESC
					初始化二进制插件
        DESC

        def initialize(argv)
          @asker = Pod::Tdfire::InitAsker.new
          super
        end

        def run
          @asker.wellcome_message

          hash = binary_config.setting_hash
          Pod::Tdfire::InitAsker::QUESTIONS.each do |k, v|
            default = hash[k] unless hash.nil?
            hash[k] = @asker.ask_with_answer(v, default)
          end

          binary_config.config_with_setting(hash)

          @asker.done_message
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cocoapods-tdfire-binary-1.3.8 lib/cocoapods-tdfire-binary/command/init.rb