Sha256: 36c8f479bafd345b9d7f71b06ec03958f5ae918017b3dbe20c197080aa2a71bb

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

module BinInstall
  module Node
    def self.install
      Brew::Package.install_or_upgrade('node')
      Brew::Package.install_or_upgrade('yarn')
      Yarn.install
    end

    def self.install!
      Brew::Package.install_or_upgrade!('node')
      Brew::Package.install_or_upgrade!('yarn')
      Yarn.install!
    end

    def self.installed?
      Shell.executable_exists?('node')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bin_install-0.0.13 lib/bin_install/node.rb
bin_install-0.0.12 lib/bin_install/node.rb
bin_install-0.0.11 lib/bin_install/node.rb
bin_install-0.0.10 lib/bin_install/node.rb
bin_install-0.0.9 lib/bin_install/node.rb