Merge pull request #206108 from Homebrew/bump-lizard-analyzer-1.17.14
[homebrew-core.git] / Formula / d / dcos-cli.rb
blob1138eaf3a5a9b17b640b580e02a7dc99bc7dffd3
1 class DcosCli < Formula
2   desc "Command-line interface for managing DC/OS clusters"
3   homepage "https://docs.d2iq.com/mesosphere/dcos/latest/cli"
4   url "https://github.com/dcos/dcos-cli/archive/refs/tags/1.2.0.tar.gz"
5   sha256 "d75c4aae6571a7d3f5a2dad0331fe3adab05a79e2966c0715409d6a2be2c6105"
6   license "Apache-2.0"
7   head "https://github.com/dcos/dcos-cli.git", branch: "master"
9   bottle do
10     rebuild 1
11     sha256 cellar: :any_skip_relocation, arm64_sequoia:  "ce669ecdf711ee9694e40d12a22866fae9e14c59ac55436cc6284133c25b88d5"
12     sha256 cellar: :any_skip_relocation, arm64_sonoma:   "566aeb81f1c506438c9f5b503f775c540dfef7a4aa5e728e710e50a2e0c10993"
13     sha256 cellar: :any_skip_relocation, arm64_ventura:  "4cf3b69223bb06a5b08f8f48eb320a2b45ef2fcf8e3f63c2e5fb49881872b7bb"
14     sha256 cellar: :any_skip_relocation, arm64_monterey: "4b7c3e8a7a0d91d84fd13cad41079bd7d718928b1acbaede6f7c5fc0f419b1bc"
15     sha256 cellar: :any_skip_relocation, arm64_big_sur:  "f86f45ed4b5244b46a83cb5bf5bc5ac869dfbae3af926f175bee78a0ebd9b47a"
16     sha256 cellar: :any_skip_relocation, sonoma:         "1d67f61c89ee09f845b39d1d44fdc61eac503144bf0da039bbd50fff50722c66"
17     sha256 cellar: :any_skip_relocation, ventura:        "f467b1082fdb605f19a24bfa1b316f06a81e5f1c9dfdb2f522582e7d3c30ee65"
18     sha256 cellar: :any_skip_relocation, monterey:       "26c6a023e4d2cf388c41f684d52f3d427f57d0a6eacd54a286c5f7c56efb7957"
19     sha256 cellar: :any_skip_relocation, big_sur:        "1391a435f38b3a70514d0ef7f0a20f19a2d7027e64cad5c1b413730a89aaec4f"
20     sha256 cellar: :any_skip_relocation, catalina:       "3f64db455d356a65dbb8be7bce2346b9b8afec968082bdad1efafb174bbde1b8"
21     sha256 cellar: :any_skip_relocation, mojave:         "759770809a74366f84721771b18702a3d27c9e6aa9099f25895200462df17ab8"
22     sha256 cellar: :any_skip_relocation, x86_64_linux:   "2ca96957a95df6e3084eeddf3d45cd52a26bdd69446647af7e52f297c6b1f1ce"
23   end
25   # D2iQ (formerly Mesosphere) has shutdown last year
26   deprecate! date: "2024-07-07", because: :unmaintained
28   depends_on "go" => :build
30   def install
31     ENV["NO_DOCKER"] = "1"
32     ENV["VERSION"] = version.to_s
33     kernel_name = OS.kernel_name.downcase
35     system "make", kernel_name
36     bin.install "build/#{kernel_name}/dcos"
37   end
39   test do
40     run_output = shell_output("#{bin}/dcos --version 2>&1")
41     assert_match "dcoscli.version=#{version}", run_output
42   end
43 end