Class: RightConf::PackagesConfigurator
- Inherits:
-
Object
- Object
- RightConf::PackagesConfigurator
- Includes:
- Configurator
- Defined in:
- lib/rconf/configurators/packages_configurator.rb
Instance Method Summary collapse
-
#check_linux ⇒ Object
(also: #check_darwin, #check_windows)
Let package manager check for idempotency, return false.
-
#run_darwin ⇒ Object
Install packages on macs.
-
#run_linux_centos ⇒ Object
(also: #run_linux_redhat)
Install packages on centos based oses.
-
#run_linux_ubuntu ⇒ Object
(also: #run_linux_debian)
Install packages on debian based oses.
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_linux ⇒ Object 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_darwin ⇒ Object
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, ) true end |
#run_linux_centos ⇒ Object 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, ) true end |
#run_linux_ubuntu ⇒ Object 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, ) true end |