Sha256: 960b6b3187466a03197adac2f7bb213095475cdf2a7771b163adbdb51df0d956
Contents?: true
Size: 773 Bytes
Versions: 3
Compression:
Stored size: 773 Bytes
Contents
require_relative 'bcupgrade/version' require_relative 'bcupgrade/brew_cask' require_relative 'bcupgrade/cask' module Bcupgrade def self.run(options, args) cask = Cask.new(options, args) # Check cask list puts "\n==> Check 'brew cask list'...\n" installed_casks = cask.installed_casks error_casks = cask.error_casks puts "#{installed_casks}\n" if error_casks.any? puts "\nSkip re-install: can't found brew cask info\n#{error_casks}\n" end # Check cask version puts "\n==> Check 'brew cask info' for the latest available version...\n" update_casks = cask.check_version # Upgrade cask if update_casks.any? cask.upgrade_version(update_casks) else puts "\nAlready up-to-date." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bcupgrade-0.3.2 | lib/bcupgrade.rb |
bcupgrade-0.3.1 | lib/bcupgrade.rb |
bcupgrade-0.3.0 | lib/bcupgrade.rb |