Class: Faststrap::Bootstrap

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/faststrap.rb

Instance Method Summary collapse

Instance Method Details

#iosObject



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/faststrap.rb', line 30

def ios
  puts "We have the follow actions for ios :"

  Faststrap::InstallActions.load_default_actions
  install_actions = Faststrap::InstallActions.list
  install_actions_count = install_actions.count

  Faststrap::InstallActions.present
  puts "* - Everything"

  everything = options[:all]

  if everything
    puts "Installing everything .."
    Faststrap.handle_answer('*',install_actions)
  else
    answer = ask("What do you want to install for ios environment ?",
                   :limited_to => Faststrap.possible_responses(install_actions_count))
    answer = (answer.to_i) -1  unless answer == '*'
    Faststrap.handle_answer(answer,install_actions)
  end

end