Sha256: 8712e17d4f8a4241f331b8276d04d86c4ce45035b35b1c9341df42f71dda063b
Contents?: true
Size: 794 Bytes
Versions: 2
Compression:
Stored size: 794 Bytes
Contents
require 'rubygems' require 'fileutils' require 'thor' require 'active_model' require 'dots/dot_file' require 'dots/command' require 'dots/version' require 'dots/persistence' require 'dots/installation' module Dots # The root path of the DOTS gem. def self.root @root_dir ||= begin spec = Gem::Specification.find_by_name 'zsh_dots' spec.gem_dir end end # The home directory of DOTS. def self.home @home_dir ||= File.expand_path "~/.dots" end def self.usage_information path = "#{Dots.root}/lib/ruby/templates/usage.txt.erb" template = ERB.new File.read(path) template.result(binding) end def self.dots_version "DOTS version #{Dots::VERSION} - http://github.com/tubbo/dots" end def dots_version self.dots_version end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zsh_dots-0.5.6 | lib/ruby/dots.rb |
zsh_dots-0.5.5 | lib/ruby/dots.rb |