Sha256: 036b2b3e78eb0f77a742289eb8fa3241d7589c9a16f01ceffe179bc04e10a6a9

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 Bytes

Contents

module BinInstall
  module Node
    def self.install
      Brew.install_or_upgrade('node')
      Brew.install_or_upgrade('yarn')
      yarn_install
    end

    def self.install!
      Brew.install_or_upgrade!('node')
      Brew.install_or_upgrade!('yarn')
      yarn_install!
    end

    def self.yarn_install
      system('bin/yarn install')
    end

    def self.yarn_install!
      BinInstall.system!('bin/yarn install')
    end

    def self.yarn_upgrade
      system('bin/yarn upgrade')
    end

    def self.yarn_upgrade!
      BinInstall.system!('bin/yarn upgrade')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bin_install-0.0.6 lib/bin_install/node.rb
bin_install-0.0.5 lib/bin_install/node.rb