Class: Avm::Stereotypes::EacRedmineBase0::Deploy
Constant Summary
Avm::Stereotypes::EacWebappBase0::Deploy::APPENDED_DIRECTORIES_ENTRY_KEY, Avm::Stereotypes::EacWebappBase0::Deploy::DEFAULT_REFERENCE, Avm::Stereotypes::EacWebappBase0::Deploy::JOBS
Instance Attribute Summary
#instance, #options
Instance Method Summary
collapse
#appended_directories, #appended_directories_from_instance_entry, #appended_directories_from_options, #assert_instance_branch, #build_git_commit, #commit_sha1_uncached, #git_deploy, #git_fetch_uncached, #git_reference, #git_reference_found_uncached, #git_remote_hashs_uncached, #git_remote_name, #git_repository_path, #git_uncached, #initialize, #instance_branch, #master_branch, #remote_branch, #request_test, #run, #setup_files_units, #start_banner
Instance Method Details
#install_task ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/avm/stereotypes/eac_redmine_base0/deploy.rb', line 28
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
19
20
21
|
# File 'lib/avm/stereotypes/eac_redmine_base0/deploy.rb', line 19
def installer_command
instance.host_env.command(installer_path, install_task)
end
|
#installer_path ⇒ Object
23
24
25
26
|
# File 'lib/avm/stereotypes/eac_redmine_base0/deploy.rb', line 23
def installer_path
::File.join(instance.read_entry(:fs_path), 'plugins', 'redmine_installer', 'installer',
'run.sh')
end
|
#run_installer ⇒ Object
12
13
14
15
16
17
|
# File 'lib/avm/stereotypes/eac_redmine_base0/deploy.rb', line 12
def run_installer
infom 'Running installer'
::Avm::Ruby.on_clean_environment do
installer_command.system!
end
end
|