Class: Faststrap::Bootstrap

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

Instance Method Summary collapse

Instance Method Details

#iosObject



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/faststrap.rb', line 29

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"

  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