lib/ruby/dots.rb in zsh_dots-0.5.7 vs lib/ruby/dots.rb in zsh_dots-0.5.8

- old
+ new

@@ -5,12 +5,16 @@ require 'dots/dot_file' require 'dots/command' require 'dots/version' require 'dots/persistence' require 'dots/installation' +require 'dots/sanity' module Dots + # All gems installed by DOTS + GEMS = %w(dots pv git_tracker rails) + # The root path of the DOTS gem. def self.root @root_dir ||= begin spec = Gem::Specification.find_by_name 'zsh_dots' spec.gem_dir @@ -38,7 +42,12 @@ self.dots_version end # The home directory for the current user. HOME = ENV['HOME'] + + # Accessor for all gems installed by DOTS, formatted for a `gem install`. + def self.gems + GEMS.join " " + end end