lib/ruby/dots.rb in zsh_dots-0.5.4 vs lib/ruby/dots.rb in zsh_dots-0.5.5

- old
+ new

@@ -20,20 +20,21 @@ # The home directory of DOTS. def self.home @home_dir ||= File.expand_path "~/.dots" end - # Usage information for the DOTS command line tool. - USAGE_INFORMATION = <<-TEXT + def self.usage_information + path = "#{Dots.root}/lib/ruby/templates/usage.txt.erb" + template = ERB.new File.read(path) - The DOTS Project + template.result(binding) + end - DOTS is a ZSH Framework for managing your dotfiles and other shell configuration. - It also gives you some nice, sensible defaults and time-saver aliases to better - work with and understand your shell environment. + def self.dots_version + "DOTS version #{Dots::VERSION} - http://github.com/tubbo/dots" + end - The following tasks are meant to help you use the shell more efficiently... - - TEXT - + def dots_version + self.dots_version + end end