26 lines
858 B
Ruby
26 lines
858 B
Ruby
require "language/node"
|
|
|
|
class Triton < Formula
|
|
desc "Joyent Triton CLI"
|
|
homepage "https://www.npmjs.com/package/triton"
|
|
url "https://registry.npmjs.org/triton/-/triton-6.1.2.tgz"
|
|
sha256 "8178ba4944ec4bdd889f512c75757b4957a849cd1a25a156c6a4590c6f51daaa"
|
|
|
|
bottle do
|
|
sha256 "636d290a02708b0da5bd5253255992577582f7f302c1525646a05dd12106e189" => :high_sierra
|
|
sha256 "6c50d2c6a7afa147faf8933c7ab6eefcede05a12aadcc5060b58b0883d0f8089" => :sierra
|
|
sha256 "b0aa58088e9ae79da67cfcb9c277116b53906e1a528629edb8350c797976568d" => :el_capitan
|
|
end
|
|
|
|
depends_on "node"
|
|
|
|
def install
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/triton profile ls")
|
|
assert_match /\ANAME CURR ACCOUNT USER URL$/, output
|
|
end
|
|
end
|