Last active
July 10, 2017 12:12
-
-
Save chrmoritz/0073afc406fc36f2b1fc46f08352d8a9 to your computer and use it in GitHub Desktop.
now cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
depends_on "node" | |
resource "homebrew.js" do | |
url "https://gist.githubusercontent.com/chrmoritz/c29019d322d7be4c81d6e5b2de9bafcc/raw/148baf748420f2867aba35ca2cd101b8966f2061/homebrew.js" | |
sha256 "f86d5f9cae002a094edf495fb93799a5d17409eb3c9d75b720975653c7f9e27b" | |
end | |
def install | |
resource("homebrew.js").stage buildpath/"scripts" | |
system "node", buildpath/"scripts/homebrew.js" | |
system "npm", "install", *Language::Node.std_npm_install_args(libexec) | |
bin.install_symlink Dir["#{libexec}/bin/*"] | |
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