brew/Library/Homebrew/dev-cmd/install-bundler-gems.rb
Mike McQuaid 3bc31d40bd
dev-cmd: disable when broken on Apple Silicon.
This is better than users getting a weird error.
2021-01-20 14:07:44 +00:00

34 lines
640 B
Ruby

# typed: true
# frozen_string_literal: true
require "formula"
require "cli/parser"
module Homebrew
extend T::Sig
module_function
sig { returns(CLI::Parser) }
def install_bundler_gems_args
Homebrew::CLI::Parser.new do
description <<~EOS
Install Homebrew's Bundler gems.
Not (yet) working on Apple Silicon.
EOS
named_args :none
end
end
def install_bundler_gems
# TODO: update description above if removing this.
raise UsageError, "not (yet) working on Apple Silicon!" if Hardware::CPU.arm?
install_bundler_gems_args.parse
Homebrew.install_bundler_gems!
end
end