Class: Avm::Stereotypes::EacRedmineBase0::Deploy

Inherits:
Avm::Stereotypes::EacWebappBase0::Deploy show all
Defined in:
lib/avm/stereotypes/eac_redmine_base0/deploy.rb

Constant Summary

Constants inherited from Avm::Stereotypes::EacWebappBase0::Deploy

Avm::Stereotypes::EacWebappBase0::Deploy::APPENDED_DIRECTORIES_ENTRY_KEY, Avm::Stereotypes::EacWebappBase0::Deploy::DEFAULT_REFERENCE, Avm::Stereotypes::EacWebappBase0::Deploy::JOBS

Instance Attribute Summary

Attributes inherited from Avm::Stereotypes::EacWebappBase0::Deploy

#instance, #options

Instance Method Summary collapse

Methods inherited from Avm::Stereotypes::EacWebappBase0::Deploy

#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

Constructor Details

This class inherits a constructor from Avm::Stereotypes::EacWebappBase0::Deploy

Instance Method Details

#install_taskObject



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_commandObject



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_pathObject



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_installerObject



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