Sha256: abb3329e40e7833097ba4a4f1dc1174bffc5a4c477aeba29fbdf056209ab110a
Contents?: true
Size: 923 Bytes
Versions: 1
Compression:
Stored size: 923 Bytes
Contents
module ActiveScripts module Packages class All < ActiveScripts::Packages::Base # INFO: ActiveScripts::Packages::All contains code that # executes all packages. private def install notify_command_unavailable! end 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 def uninstall notify_command_unavailable! end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_scripts-0.1.0 | lib/active_scripts/packages/all.rb |