Class: Chekku::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/chekku/installer.rb

Instance Method Summary collapse

Instance Method Details

#install_app?(app_name) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
12
13
# File 'lib/chekku/installer.rb', line 4

def install_app?(app_name)
  return if @never_install
  install_answer = ask_user(app_name) unless @install_all
  @never_install = true if install_answer == 'none'
  @install_all = true   if install_answer == 'all' || install_answer == 'a'
  if @install_all || install_answer == 'yes' || install_answer == 'y'
    puts "Starting #{app_name} installation"
    install_app app_name
  end
end