Class: Redmine::Installer::Step::LoadPackage

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

Constant Summary collapse

SUPPORTED_ARCHIVE_FORMATS =
['.zip', '.gz', '.tgz']
'././@LongLink'
PROGRESSBAR_FORMAT =
'%a [%b>%i] %p%% %t'

Instance Attribute Summary

Attributes inherited from Base

#base, #index, #ran

Instance Method Summary collapse

Methods inherited from Base

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

#final_stepObject



26
27
28
29
# File 'lib/redmine-installer/steps/load_package.rb', line 26

def final_step
  # Delete tmp_redmine_root
  FileUtils.remove_entry_secure(@tmpdir) if @tmpdir
end

#upObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/redmine-installer/steps/load_package.rb', line 15

def up
  case base.options[:source]
  when 'file'
    load_file
  when 'git'
    load_git
  else
    error :error_unsupported_source, source: base.options[:source]
  end
end