Class: Pod::Command::Bin::Inithk
- Inherits:
-
Pod::Command::Bin
- Object
- Pod::Command
- Pod::Command::Bin
- Pod::Command::Bin::Inithk
- Defined in:
- lib/cocoapods-bb-bin/command/bin/initHotKey.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Inithk
constructor
A new instance of Inithk.
- #run ⇒ Object
Methods inherited from Pod::Command::Bin
Methods included from CBin::SpecFilesHelper
#binary_spec, #binary_spec_files, #binary_template_spec, #binary_template_spec_file, #binary_template_spec_files, #clear_binary_spec_file_if_needed, #code_spec, #code_spec_files, #create_binary_spec_file, #find_spec_file, #spec_files
Methods included from CBin::SourcesHelper
#binary_source, #code_source, #sources_manager, #sources_option, #sources_optionV2, #valid_sources, #valid_sourcesV2
Constructor Details
#initialize(argv) ⇒ Inithk
Returns a new instance of Inithk.
20 21 22 23 |
# File 'lib/cocoapods-bb-bin/command/bin/initHotKey.rb', line 20 def initialize(argv) @bin_url = argv.option('bin-url') super end |
Class Method Details
.options ⇒ Object
14 15 16 17 18 |
# File 'lib/cocoapods-bb-bin/command/bin/initHotKey.rb', line 14 def self. [ ['--bin-url=URL', '配置文件地址,直接从此地址下载配置文件'] ].concat(super) end |
Instance Method Details
#run ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/cocoapods-bb-bin/command/bin/initHotKey.rb', line 25 def run if @bin_url.nil? config_with_asker else config_with_url(@bin_url) end end |