Class: Pod::Command::Binary::Init

Inherits:
Pod::Command::Binary show all
Defined in:
lib/cocoapods-tdfire-binary/command/init.rb

Instance Method Summary collapse

Methods inherited from Pod::Command::Binary

#binary_config, #first_podspec, #private_sources

Constructor Details

#initialize(argv) ⇒ Init

Returns a new instance of Init.



15
16
17
18
# File 'lib/cocoapods-tdfire-binary/command/init.rb', line 15

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

Instance Method Details

#runObject



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/cocoapods-tdfire-binary/command/init.rb', line 20

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