Sha256: 843e49d318a99902f01f44961d58a73200ae56378afb32f8c2e3a42b407d55cc
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
module BinInstall module Brew module Package # https://atom.io/packages/list?direction=desc&sort=downloads POPULAR_PACKAGES = %w[file-icons minimap atom-beautify linter linter-ui-default pigments git-plus busy-signal linter-eslint react].freeze def self.ask_popular return unless installed? print 'Would you like to install popular packages for Atom? [Y/n]: ' install_popular if Shell.default_yes?(gets.chomp) end def self.ask_popular! print 'Would you like to install popular packages for Atom? [Y/n]: ' install_popular! if Shell.default_yes?(gets.chomp) end def self.install_popular return unless installed? puts 'Installing popular Atom packages...'.white POPULAR_PACKAGES.each { |p| install(p) } end def self.install_popular! puts 'Installing popular Atom packages...'.white POPULAR_PACKAGES.each { |p| install!(p) } end def self.install(package) system("apm install #{package}") end def self.install!(package) BinInstall.system!("apm install #{package}") end def self.installed? Shell.executable_exists?('apm') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bin_install-0.0.11 | lib/bin_install/atom/package.rb |
bin_install-0.0.10 | lib/bin_install/atom/package.rb |
bin_install-0.0.9 | lib/bin_install/atom/package.rb |