lib/ruby/dots/bootstrap.rb in zsh_dots-0.5.4 vs lib/ruby/dots/bootstrap.rb in zsh_dots-0.5.5
- old
+ new
@@ -1,11 +1,12 @@
module Dots
module Bootstrap
include Thor::Actions
# These are the programs we are going to download from Homebrew.
- PROGRAMS = %w(httpie git ruby)
+ PROGRAMS = %w(git ruby python vim pip hub)
+ PACKAGES = %w(httpie aws)
# Install C binaries, Python programs, and other useful tools
# from Homebrew.
def install_programs
if installed? "brew"
@@ -13,18 +14,24 @@
programs << program unless installed? program
}.join " "
system "brew install #{programs_to_install}" \
unless programs_to_install.empty?
+ install_packages
else
- install_homebrew
+ install_homebrew and install_programs
end
end
# Install the latest version of all gems to the global gemset. These
# gems are configured in +~/.Gemfile+.
def install_bundle
system "cd #{Dots::HOME} && #{bundle_install}"
+ end
+
+ # Install Python packages from pip. Pip!
+ def install_packages
+ system "pip install #{PACKAGES.join(' ')}"
end
private
def installed? command
`which #{command}` != ""