Class: Redmine::Installer::Step::EnvCheck

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

Instance Attribute Summary

Attributes inherited from Base

#base, #index, #ran

Instance Method Summary collapse

Methods inherited from Base

#down, #final, #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

#prepareObject



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

def prepare
  # Check if windows
  # if windows?
  #   confirm(:do_you_want_continue_if_windows, false)
  # end

  if root? && !confirm(:installer_run_as_root, false)
    error(:terminated_by_user)
  end
end

#upObject



15
16
17
# File 'lib/redmine-installer/steps/env_check.rb', line 15

def up
  say '<green>... OK</green>', 1
end