Sha256: 754ef631f623f2d2a8b65aba727090dc2ed706dfa1e2cd431c64911836e534f5

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

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

    def self.install!
      Brew.install_or_upgrade!('node')
      Brew.install_or_upgrade!('yarn')
      yarn_upgrade!
    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.4 lib/bin_install/node.rb
bin_install-0.0.3 lib/bin_install/node.rb