Sha256: ecb55cc4fc7cebbcec2918ac2902df9fb59dbd8d18dfbe89367183edaf01e03d

Contents?: true

Size: 1.59 KB

Versions: 14

Compression:

Stored size: 1.59 KB

Contents

require 'rho_connect_install_utilities'
require 'rho_connect_install_constants'

include Utilities

class Yum
  attr_accessor :options
  
  def initialize(options)
    @@flavor = "Yum"
    @options = options
    @options[:pkg_mgr]  = 'yes | yum'
    @options[:pkg_chkr] = 'rpm -qa'
  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]

    #gather necessary files
    download_and_decompress(@options[:prefix], [Constants::REDIS_URL, Constants::SQLITE3_URL])

    # ruby gems is installed by the REE installer
#    install_rubygems
    install_redis if @options[:redis]
    # Cent OS uses obsolete sqlite3 libs, update them the latest ones  
    install_sqlite

    #start installing
    install_all_gems
    configure_passenger @options

    #install rhoconnect
    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 #Yum

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rhoconnect-3.1.2 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.1.1 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.1.0 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.1.0.beta2 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.1.0.beta1 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.6 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.5 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.4 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.3 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.2 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.1 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.0 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.0.rc1 installer/unix-like/rho_connect_install_yum.rb
rhoconnect-3.0.0.beta3 installer/unix-like/rho_connect_install_yum.rb