Module: Dots
- Defined in:
- lib/ruby/dots/sanity.rb,
lib/ruby/dots.rb,
lib/ruby/dots/command.rb,
lib/ruby/dots/version.rb,
lib/ruby/dots/dot_file.rb,
lib/ruby/dots/bootstrap.rb,
lib/ruby/dots/persistence.rb,
lib/ruby/dots/installation.rb
Overview
Dots::Installation
These are various tasks that DOTS uses to install itself onto each machine. While most RubyGems are served from its directory in GEM_HOME, DOTS is primarily run from the user’s home directory, since a user typically makes all kinds of shell configuration enhancements after installing.
Defined Under Namespace
Modules: Bootstrap, Installation, Persistence, Sanity Classes: Command, DotFile
Constant Summary collapse
- GEMS =
All gems installed by DOTS
%w(dots pv git_tracker rails)
- HOME =
The home directory for the current user.
ENV['HOME']
- VERSION =
"0.5.9"
Class Method Summary collapse
-
.dots_version ⇒ Object
Shows a String with the current version of the framework.
-
.gems ⇒ Object
Accessor for all gems installed by DOTS, formatted for a ‘gem install`.
-
.home ⇒ Object
The home directory of DOTS.
-
.root ⇒ Object
The root path of the DOTS gem.
- .usage_information ⇒ Object
Instance Method Summary collapse
Class Method Details
.dots_version ⇒ Object
Shows a String with the current version of the framework.
37 38 39 |
# File 'lib/ruby/dots.rb', line 37 def self.dots_version "DOTS version #{Dots::VERSION} - http://github.com/tubbo/dots" end |
.gems ⇒ Object
Accessor for all gems installed by DOTS, formatted for a ‘gem install`.
49 50 51 |
# File 'lib/ruby/dots.rb', line 49 def self.gems GEMS.join " " end |
.home ⇒ Object
The home directory of DOTS.
25 26 27 |
# File 'lib/ruby/dots.rb', line 25 def self.home @home_dir ||= File. "~/.dots" end |
.root ⇒ Object
The root path of the DOTS gem.
17 18 19 20 21 22 |
# File 'lib/ruby/dots.rb', line 17 def self.root @root_dir ||= begin spec = Gem::Specification.find_by_name 'zsh_dots' spec.gem_dir end end |
Instance Method Details
#dots_version ⇒ Object
41 42 43 |
# File 'lib/ruby/dots.rb', line 41 def dots_version self.dots_version end |