Class: Redmine::Installer::Step::MoveRedmine

Inherits:
Base
  • Object
show all
Defined in:
lib/redmine-installer/steps/move_redmine.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_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



17
18
19
# File 'lib/redmine-installer/steps/move_redmine.rb', line 17

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

#upObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/redmine-installer/steps/move_redmine.rb', line 6

def up
  # Move all files from tmp_redmine_root to redmine_root
  Dir.chdir(base.tmp_redmine_root) do
    Dir.glob('{*,.*}') do |entry|
      next if entry.end_with?('.') || entry.end_with?('..')

      FileUtils.mv(entry, base.redmine_root)
    end
  end
end