Sha256: 1620cf85fa6c5ddb7f2023dce2b597a7a461543c8fbc4434b471db8c91cf870f

Contents?: true

Size: 1.17 KB

Versions: 20

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

require 'avm/eac_rails_base1/instances/base'
require 'eac_ruby_utils/core_ext'

module Avm
  module EacRedmineBase0
    module Instances
      class Base < ::Avm::EacRailsBase1::Instances::Base
        module Install
          INSTALL_EXTRA_KEY = 'install.extra'
          DEFAULT_INSTALL_EXTRA = ''

          # @return [String]
          def auto_install_extra
            inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, INSTALL_EXTRA_KEY) ||
              DEFAULT_INSTALL_EXTRA
          end

          def run_installer
            ::EacRubyUtils::Ruby.on_clean_environment do
              installer_command.system!
            end
          end

          def installer_command
            host_env.command(installer_path, install_task)
          end

          def installer_path
            ::File.join(install_path, 'plugins', 'redmine_installer', 'installer',
                        'run.sh')
          end

          def install_task
            if web_path_optional.present?
              'redmine_as_apache_path'
            else
              'redmine_as_apache_base'
            end
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
avm-eac_redmine_base0-0.22.3 lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.91.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
avm-eac_redmine_base0-0.22.2 lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.87.1 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
avm-eac_redmine_base0-0.22.1 lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.86.11 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.83.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.82.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.81.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
avm-eac_redmine_base0-0.22.0 lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.80.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
avm-eac_redmine_base0-0.21.2 lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.79.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
avm-eac_redmine_base0-0.21.1 lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.78.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.77.1 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.77.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.76.1 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb
avm-eac_redmine_base0-0.21.0 lib/avm/eac_redmine_base0/instances/base/install.rb
eac_tools-0.76.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb