Sha256: 6989bb28fa52e6db8b9df247f2f9d4e42e4edf00ffc36cf2bffa93547db42b9a
Contents?: true
Size: 1.1 KB
Versions: 9
Compression:
Stored size: 1.1 KB
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 self.options [ ['--without-ask', '直接下载配置'], ].concat(super) end def initialize(argv) @without_ask = argv.flag?('without-ask') @asker = Pod::Tdfire::InitAsker.new super end def run @asker.wellcome_message if @without_ask binary_config.clone_default_config else hash = binary_config.setting_hash Pod::Tdfire::InitAsker::QUESTIONS.each do |k, v| default = hash[k] if hash hash[k] = @asker.ask_with_answer(v, default) end binary_config.config_with_setting(hash) end @asker.done_message end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems