Class: Avm::EacRedmineBase0::Deploy
Constant Summary
Stereotypes::EacWebappBase0::Deploy::DEFAULT_REFERENCE, Stereotypes::EacWebappBase0::Deploy::JOBS
Instance Attribute Summary
#instance, #options
Instance Method Summary
collapse
#assert_instance_branch, #build_git_commit, #git_deploy, #git_fetch_uncached, #git_repository_path, #git_uncached, #initialize, #request_test, #run, #setup_files_units, #start_banner
Instance Method Details
#install_task ⇒ Object
27
28
29
30
31
32
33
|
# File 'lib/avm/eac_redmine_base0/deploy.rb', line 27
def install_task
if instance.read_entry_optional('web.path').present?
'redmine_as_apache_path'
else
'redmine_as_apache_base'
end
end
|
#installer_command ⇒ Object
18
19
20
|
# File 'lib/avm/eac_redmine_base0/deploy.rb', line 18
def installer_command
instance.host_env.command(installer_path, install_task)
end
|
#installer_path ⇒ Object
22
23
24
25
|
# File 'lib/avm/eac_redmine_base0/deploy.rb', line 22
def installer_path
::File.join(instance.read_entry(:fs_path), 'plugins', 'redmine_installer', 'installer',
'run.sh')
end
|
#run_installer ⇒ Object
11
12
13
14
15
16
|
# File 'lib/avm/eac_redmine_base0/deploy.rb', line 11
def run_installer
infom 'Running installer'
::EacRubyUtils::Ruby.on_clean_environment do
installer_command.system!
end
end
|