Class: Redmine::Installer::Step::MoveRedmine
- Defined in:
- lib/redmine-installer/steps/move_redmine.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#down, #final_step, #initialize, #load, #print_header, #print_title, #redmine_plugins, #save
Methods included from Utils
Constructor Details
This class inherits a constructor from Redmine::Installer::Step::Base
Instance Method Details
#print_footer ⇒ Object
17 18 19 |
# File 'lib/redmine-installer/steps/move_redmine.rb', line 17 def say '<green>... OK</green>', 1 end |
#up ⇒ Object
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 |