Class: Redmine::Installer::Step::Install

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

Instance Attribute Summary

Attributes inherited from Base

#base, #index, #ran

Instance Method Summary collapse

Methods inherited from Base

#down, #final, #initialize, #load, #prepare, #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
20
# File 'lib/redmine-installer/steps/install.rb', line 4

def up
  Dir.chdir(base.tmp_redmine_root) do
    command.bundle_install(base.env)

    return if base.settings[:skip_migration]

    command.rake_db_create(base.env)
    command.rake_db_migrate(base.env)
    command.rake_redmine_plugin_migrate(base.env) if some_plugins?
    command.rake_generate_secret_token(base.env)

    # Other plugins can have post-install procedure
    plugin::RedminePlugin.all.each do |plugin|
      plugin.install(base)
    end
  end
end