Sha256: 4df35e8b3f46b72722f548d0eefeef5b99ace06212d4fcf2da9aa53b76531773
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
require 'dots/persistence' require 'dots/installation' require 'dots/bootstrap' module Dots class Command < Thor include Thor::Actions, Dots::Persistence, Dots::Installation, Dots::Bootstrap default_task :usage desc :usage, "Show usage information" def usage say Dots::USAGE_INFORMATION and help end desc :install, "Copies DOTS to your home directory." alias install install_framework def install copy_to_home_directory and link_dot_files end desc :update, "Update DOTS, Antigen and all plugins to their latest version." def update update_the_framework end desc :version, "Show the current version of DOTS" def version say "DOTS version #{Dots::VERSION} - http://tubbo.github.com/dots" end desc :link, "Symlink your ~/.dots/config into dotfiles" def link link_dot_files end desc :persist, "Copy a dotfile to .dots/config and symlink the original location" alias persist persist_file def persist_file name persist_dot_file name end desc :forget, "Remove the symlink and restore a dotfile back to its original location" alias forget forget_file def forget_file name forget_dot_file name end desc :bootstrap, "Install the whole shebang: gems, C programs, Python stuff, DOTS." def bootstrap install_programs and install_bundle and install_framework end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zsh_dots-0.5.3 | lib/ruby/dots/command.rb |