module BinInstall::Atom::Package
Constants
- POPULAR_PACKAGES
Public Class Methods
ask_popular()
click to toggle source
# File lib/bin_install/atom/package.rb, line 7 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
ask_popular!()
click to toggle source
# File lib/bin_install/atom/package.rb, line 14 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
install(package)
click to toggle source
# File lib/bin_install/atom/package.rb, line 31 def self.install(package) system("apm install #{package}") end
install!(package)
click to toggle source
# File lib/bin_install/atom/package.rb, line 35 def self.install!(package) BinInstall.system!("apm install #{package}") end
install_popular()
click to toggle source
# File lib/bin_install/atom/package.rb, line 19 def self.install_popular return unless installed? puts 'Installing popular Atom packages...'.white POPULAR_PACKAGES.each { |p| install(p) } end
install_popular!()
click to toggle source
# File lib/bin_install/atom/package.rb, line 26 def self.install_popular! puts 'Installing popular Atom packages...'.white POPULAR_PACKAGES.each { |p| install!(p) } end
installed?()
click to toggle source
# File lib/bin_install/atom/package.rb, line 39 def self.installed? Shell.executable_exists?('apm') end