cartridge-cli 1.2.0 (new formula)
Closes #46777. Signed-off-by: Thierry Moisan <thierry.moisan@gmail.com>
This commit is contained in:
parent
e3b46dec53
commit
3d60b2a83b
1 changed files with 24 additions and 0 deletions
24
Formula/cartridge-cli.rb
Normal file
24
Formula/cartridge-cli.rb
Normal 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
|
Loading…
Reference in a new issue