From 85a8d200a90d3d7b2a3fa58441254f7a624435f8 Mon Sep 17 00:00:00 2001 From: MAL Date: Tue, 10 Oct 2023 13:29:14 +0200 Subject: [PATCH] add osc-cost formula brew --- Formula/osc-cost.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/osc-cost.rb diff --git a/Formula/osc-cost.rb b/Formula/osc-cost.rb new file mode 100644 index 0000000..6f35ea7 --- /dev/null +++ b/Formula/osc-cost.rb @@ -0,0 +1,24 @@ +class OscCost < Formula + desc "osc-cost allows Outscale users to estimate their cloud costs." + homepage "https://github.com/outscale/osc-cost" + url "https://github.com/outscale/osc-cost/archive/refs/tags/v0.3.5.tar.gz" + sha256 "79566899f0bed0393b0feb2920c9f2e1ced59c5fea7c3999c69e7de5003a68b8" + license "BSD-3-Clause" + + bottle do + sha256 cellar: :any_skip_relocation, x86_64_darwin: "dfec6444cdc4eecead4ab67d35a3d841a4fd72c2a12614f69d73ce807e47fcb9" + sha256 cellar: :any_skip_relocation, arm64_darwin: "629274c08e5789d44b3df692b425e84dc2a5368e2dca5eeee709fa7ebc8c0425" + sha256 cellar: :any_skip_relocation, x86_64_linux: "bac270eb8c8d38fbb2a1e247ea1c557f85a8dfa0b9786a402e0a81a1d34f6650" + end + + depends_on "rust" => :build + + def install + system "cargo", "install", *std_cargo_args + end + + test do + str = shell_output("#{bin}/osc-cost --help") + assert_match "osc-cost", str + end +end