Skip to content

Instantly share code, notes, and snippets.

@amio
Forked from chrmoritz/now-cli.rb
Last active June 27, 2017 07:10
Show Gist options
  • Save amio/c794653d93840ee38cb6af7fd53d1209 to your computer and use it in GitHub Desktop.
Save amio/c794653d93840ee38cb6af7fd53d1209 to your computer and use it in GitHub Desktop.
now cli
require "language/node"
class NowCli < Formula
desc "The command-line interface for realtime global deployments."
homepage "https://zeit.co/now"
url "https://github.com/zeit/now-cli/archive/7.0.2.tar.gz"
sha256 "7924feb98f07a599cb9ffdabd07f95048864cf4fe15fdcbd2922b8cd8b32a8be"
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm run pack"
bin.install "packed/now" => "now"
end
test do
system "#{bin}/now", "-v"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment