Sha256: cf4bb789ba7bf84a9783232ba24cfcc62893bfd9fe72c31464f530b338fdeae6
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
require 'minarai/actions/base' module Minarai module Actions class Homebrew < Base attribute :item, required: true def run install end private def install run_specific_command(:install_package, item) end def complete? has_homebrew? && installed? end def installed? check_specific_command(:check_package_is_installed, item) end def has_homebrew? check_command 'which brew' end def name super || "brew install #{item}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
minarai-0.0.3 | lib/minarai/actions/homebrew.rb |
minarai-0.0.2 | lib/minarai/actions/homebrew.rb |
minarai-0.0.1 | lib/minarai/actions/homebrew.rb |