class ActiveScripts::Packages::All
Private Instance Methods
install()
click to toggle source
INFO: ActiveScripts::Packages::All
contains code that
executes all packages.
# File lib/active_scripts/packages/all.rb, line 10 def install notify_command_unavailable! end
uninstall()
click to toggle source
# File lib/active_scripts/packages/all.rb, line 28 def uninstall notify_command_unavailable! end
upgrade()
click to toggle source
# File lib/active_scripts/packages/all.rb, line 14 def upgrade case $operating_system when :macosx, :linux execute_command!("brew update --all") output = execute_command!("brew upgrade --all") say_warning(" [!] #{output}") unless option_dry_run? || package_output?(output) output = execute_command!("brew doctor") say_warning(" [!] #{output}") unless option_dry_run? || package_output?(output, includes: "Your system is ready to brew.") say_ok(" Upgrade complete!") else notify_package_unavailable! end end