lib/rconf/configurators/packages_configurator.rb in rconf-0.8.3 vs lib/rconf/configurators/packages_configurator.rb in rconf-0.8.4
- old
+ new
@@ -23,9 +23,19 @@
:centos => 'Packages to be installed on RedHat / Centos',
:windows => 'Softwared to be downloaded and installed on Windows',
:darwin => 'Brew packages to be installed on Mac OS X (https://github.com/mxcl/homebrew)',
:abort_on_failure => 'Whether to abort if packages failed to install (false by default)'
+ # Let package manager check for idempotency, return false
+ #
+ # === Return
+ # false:: Always return false
+ def check_linux
+ false
+ end
+ alias :check_darwin :check_linux
+ alias :check_windows :check_linux
+
# Install packages on debian based oses
#
# === Return
# true:: Always return true
def run_linux_ubuntu