Class: Redmine::Installer::Step::WebserverConfig

Inherits:
Base
  • Object
show all
Defined in:
lib/redmine-installer/steps/webserver_config.rb

Instance Attribute Summary

Attributes inherited from Base

#base, #index, #ran

Instance Method Summary collapse

Methods inherited from Base

#down, #final_step, #initialize, #load, #print_footer, #print_header, #print_title, #redmine_plugins, #save

Methods included from Utils

included

Constructor Details

This class inherits a constructor from Redmine::Installer::Step::Base

Instance Method Details

#upObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/redmine-installer/steps/webserver_config.rb', line 4

def up
  choices = {}
  plugin::WebServer.all.each do |m|
    choices[m] = m.title
  end
  choices[nil] = t(:skip)

  answer = choose(:"what_web_server_do_you_want", choices, default: nil)

  # Skip
  return if answer.nil?

  say("(#{answer.title  })", 5)

  say(answer.generate_config(base.redmine_root))
end