Skip to content

Instantly share code, notes, and snippets.

@wingrunr21
Last active January 8, 2018 22:27
Show Gist options
  • Save wingrunr21/cf1419dacede357d5adb6a382364694e to your computer and use it in GitHub Desktop.
Save wingrunr21/cf1419dacede357d5adb6a382364694e to your computer and use it in GitHub Desktop.

Revisions

  1. wingrunr21 revised this gist Jan 8, 2018. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions chnode.rb
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,7 @@ class Chnode < Formula
    homepage "https://github.com/steakknife/chnode"
    url "https://github.com/steakknife/chnode/archive/v1.2.3.tar.gz"
    sha256 "ae0bd1d9227ef76286d19331f9a3c5fcc1926e70f4ef0d3896a8f9f7b463c792"

    depends_on "node"
    head "https://github.com/steakknife/chnode.git"

    def install
    bin.install "chnode", "chnode-auto", "chnode-exec"
  2. @steakknife steakknife created this gist Dec 11, 2016.
    17 changes: 17 additions & 0 deletions chnode.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    class Chnode < Formula
    desc "Change between installed Node versions in your current shell."
    homepage "https://github.com/steakknife/chnode"
    url "https://github.com/steakknife/chnode/archive/v1.2.3.tar.gz"
    sha256 "ae0bd1d9227ef76286d19331f9a3c5fcc1926e70f4ef0d3896a8f9f7b463c792"

    depends_on "node"

    def install
    bin.install "chnode", "chnode-auto", "chnode-exec"
    doc.install "README.md", "LICENSE", "CHANGELOG.md"
    end

    test do
    system "chnode-exec", "system", "--", "node", "-v"
    end
    end