Sha256: f26525bc3d17d49a5c9089afce752a4f34c54d73ce1bc311ecb5058b61d2c5d9

Contents?: true

Size: 788 Bytes

Versions: 7

Compression:

Stored size: 788 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 = Tdfire::InitAsker.new
          super
        end

        def run
          @asker.wellcome_message

          hash = binary_config.setting_hash

          Tdfire::InitAsker::QUESTIONS.each do |k, v|
            hash[k] = @asker.ask_with_answer(v, hash[k])
          end

          binary_config.config_with_setting(hash)

          @asker.done_message
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cocoapods-tdfire-binary-1.2.5 lib/cocoapods-tdfire-binary/command/init.rb
cocoapods-tdfire-binary-1.2.4 lib/cocoapods-tdfire-binary/command/init.rb
cocoapods-tdfire-binary-1.2.3 lib/cocoapods-tdfire-binary/command/init.rb
cocoapods-tdfire-binary-1.2.2 lib/cocoapods-tdfire-binary/command/init.rb
cocoapods-tdfire-binary-1.2.1 lib/cocoapods-tdfire-binary/command/init.rb
cocoapods-tdfire-binary-1.2.0 lib/cocoapods-tdfire-binary/command/init.rb
cocoapods-tdfire-binary-1.1.0 lib/cocoapods-tdfire-binary/command/init.rb