Class: RightConf::PackagesConfigurator

Inherits:
Object
  • Object
show all
Includes:
Configurator
Defined in:
lib/rconf/configurators/packages_configurator.rb

Instance Method Summary collapse

Methods included from Configurator

#[], #check, included, #post_process, #run, #signature, #validate

Methods included from ProgressReporter

included, report_to_file, report_to_stdout

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightConf::Configurator

Instance Method Details

#check_linuxObject Also known as: check_darwin, check_windows

Let package manager check for idempotency, return false

Return

false

Always return false



32
33
34
# File 'lib/rconf/configurators/packages_configurator.rb', line 32

def check_linux
  false
end

#run_darwinObject

Install packages on macs

Return

true

Always return true



62
63
64
65
# File 'lib/rconf/configurators/packages_configurator.rb', line 62

def run_darwin
  PackageInstaller.install(darwin, options)
  true
end

#run_linux_centosObject Also known as: run_linux_redhat

Install packages on centos based oses

Return

true

Always return true



52
53
54
55
# File 'lib/rconf/configurators/packages_configurator.rb', line 52

def run_linux_centos
  PackageInstaller.install(centos, options)
  true
end

#run_linux_ubuntuObject Also known as: run_linux_debian

Install packages on debian based oses

Return

true

Always return true



42
43
44
45
# File 'lib/rconf/configurators/packages_configurator.rb', line 42

def run_linux_ubuntu
  PackageInstaller.install(debian, options)
  true
end