Sha256: 6ff34fcae9f3789e05407cb2fd076bed103f558619d0356803d4ce671d1f0502

Contents?: true

Size: 1.46 KB

Versions: 6

Compression:

Stored size: 1.46 KB

Contents

require 'dots/persistence'
require 'dots/installation'
require 'dots/bootstrap'
require 'dots/sanity'

module Dots
  class Command < Thor
    include Thor::Actions, Dots::Persistence, Dots::Installation, Dots::Bootstrap, Dots::Sanity
    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."
    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
    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"
    def persist name
      persist_dot_file name
    end

    desc :forget, "Remove the symlink and restore a dotfile back to its original location"
    def forget 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
    end

    desc :robify, "Restore the shell to sane, sensible defaults."
    method_option :edit, default: true
    def robify
      stop_being_insane! and (open_textmate if options[:edit])
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zsh_dots-0.6.5 lib/ruby/dots/command.rb
zsh_dots-0.6.3 lib/ruby/dots/command.rb
zsh_dots-0.6.2 lib/ruby/dots/command.rb
zsh_dots-0.6.0 lib/ruby/dots/command.rb
zsh_dots-0.5.9 lib/ruby/dots/command.rb
zsh_dots-0.5.8 lib/ruby/dots/command.rb