Class: Pod::Command::Bin::Inithk

Inherits:
Bin
  • Object
show all
Defined in:
lib/cocoapods-bb-bin/command/bin/initHotKey.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.optionsObject



14
15
16
17
18
# File 'lib/cocoapods-bb-bin/command/bin/initHotKey.rb', line 14

def self.options
  [
    ['--bin-url=URL', '配置文件地址,直接从此地址下载配置文件']
  ].concat(super)
end

Instance Method Details

#runObject



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