Class: Redmine::Installer::Step::LoadPackage
- Defined in:
- lib/redmine-installer/steps/load_package.rb
Constant Summary collapse
- SUPPORTED_ARCHIVE_FORMATS =
['.zip', '.gz', '.tgz']
- TAR_LONGLINK =
'././@LongLink'
- PROGRESSBAR_FORMAT =
'%a [%b>%i] %p%% %t'
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#down, #initialize, #load, #print_footer, #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
#final_step ⇒ Object
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 |
#up ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/redmine-installer/steps/load_package.rb', line 15 def up case base.[:source] when 'file' load_file when 'git' load_git else error :error_unsupported_source, source: base.[:source] end end |