Sha256: a26268fbe3b4a6daa27bd12c1404924da23418efe09a29e2623ab328dfe5fd79

Contents?: true

Size: 1.33 KB

Versions: 40

Compression:

Stored size: 1.33 KB

Contents

require 'rho_connect_install_utilities'
require 'rho_connect_install_constants'

include Utilities
include Constants

class Debian
  attr_accessor :options
  
  def initialize(options)
    @@flavor = "Debian"
    @options = options
  end #initialize
  
  # check_for_installed_software_only
  # This method runs checks against the software that must be installed.
  def check_for_installed_software_only
    check_all_installed @options
  end #check_for_installed_software_only
  
  # execute_installation
  # This method orchestrates the actual installation process
  def execute_installation
    #start logging
    set_log_file @options[:log]
    
    download_and_decompress(@options[:prefix], [REDIS_URL, SQLITE3_URL, NGINX_URL])
    
    install_redis if @options[:redis]
    install_sqlite
    configure_nginx @options

    install_all_gems
    install_rhoconnect
    
    #remove downloaded tarballs
    cleanup options[:prefix]
  end #execute_installation
  
  # to_s
  # This method overrides the default to_s method
  def to_s
    string = "Debian Installation Parameters:\n"
    string << "\tPackage Manager\n"
    string << "\t\tapt-get\n"
    Constants::DEFAULTS.each do |key, val|
      string << "\t" + key + "\n"
      val.each do |field|
        string << "\t\t" + field + "\n"
      end #do
    end #do
    
    string
  end #to_s
    
end #Debian

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-7.5.1 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-7.4.1 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-7.1.17 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-6.2.0 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-6.0.11 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.5.18 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.5.17 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.5.15 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.5.0.22 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.5.2 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.5.0.7 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.5.0.3 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.5.0 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-5.1.1 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-4.0.4 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-4.0.3 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-4.0.2 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-4.0.1 installer/unix-like/rho_connect_install_debian.rb
rhoconnect-4.0.0 installer/unix-like/rho_connect_install_debian.rb