cartridge-cli 1.2.0 (new formula)

Closes #46777.

Signed-off-by: Thierry Moisan <thierry.moisan@gmail.com>
This commit is contained in:
Max Melentiev 2019-11-15 14:12:36 +03:00 committed by Thierry Moisan
parent e3b46dec53
commit 3d60b2a83b
No known key found for this signature in database
GPG key ID: A9A4CB593D38CDD0

24
Formula/cartridge-cli.rb Normal file
View file

@ -0,0 +1,24 @@
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