homebrew-core/Formula/cartridge-cli.rb

25 lines
785 B
Ruby
Raw Normal View History

class CartridgeCli < Formula
desc "Tarantool Cartridge command-line utility"
homepage "https://tarantool.org/"
url "https://github.com/tarantool/cartridge-cli/archive/1.2.0.tar.gz"
sha256 "4668f84a779eb8f6ddfcafaf4c727899ef2fe31622e8999317c512b685bd1c31"
head "https://github.com/tarantool/cartridge-cli.git"
depends_on "cmake" => :build
depends_on "tarantool"
def install
system "cmake", ".", *std_cmake_args, "-DVERSION=#{version}"
system "make"
system "make", "install"
end
test do
project_path = Pathname("test-project")
project_path.rmtree if project_path.exist?
system bin/"cartridge", "create", "--name", project_path
assert_predicate project_path, :exist?
assert_predicate project_path.join("init.lua"), :exist?
end
end