Class: Uberinstaller::PackageManager::Apt

Inherits:
Base
  • Object
show all
Defined in:
lib/uberinstaller/package_managers/apt.rb

Overview

Apt-Get Package manager

Instance Attribute Summary

Attributes inherited from Base

#commands

Instance Method Summary collapse

Methods inherited from Base

#debug, #initialize, #make_command, #method_missing

Methods included from Loggable

configure_logger_for, #logger, logger_for

Constructor Details

This class inherits a constructor from Uberinstaller::PackageManager::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Uberinstaller::PackageManager::Base

Instance Method Details

#set_commandsObject



10
11
12
13
14
15
# File 'lib/uberinstaller/package_managers/apt.rb', line 10

def set_commands
  @commands[:add_repository] = "apt-add-repository -y" 
  @commands[:install] = "DEBIAN_FRONTEND=gnome apt-get install -y" 
  @commands[:update] = "apt-get update" 
  @commands[:upgrade] = "apt-get upgrade" 
end