class Minarai::Actions::HomebrewCask
Public Instance Methods
run()
click to toggle source
# File lib/minarai/actions/homebrew_cask.rb, line 8 def run install end
Private Instance Methods
complete?()
click to toggle source
# File lib/minarai/actions/homebrew_cask.rb, line 18 def complete? has_homebrew? && installed? end
has_homebrew?()
click to toggle source
# File lib/minarai/actions/homebrew_cask.rb, line 26 def has_homebrew? check_command 'which brew-cask' end
install()
click to toggle source
# File lib/minarai/actions/homebrew_cask.rb, line 14 def install run_command "brew cask install #{item}" end
installed?()
click to toggle source
# File lib/minarai/actions/homebrew_cask.rb, line 22 def installed? check_command "/usr/local/bin/brew cask list -1 | grep -E '^#{item}$'" end
name()
click to toggle source
Calls superclass method
Minarai::Actions::Base#name
# File lib/minarai/actions/homebrew_cask.rb, line 30 def name super || "brew cask install #{item}" end