lib/ruby/dots/command.rb in zsh_dots-0.5.7 vs lib/ruby/dots/command.rb in zsh_dots-0.5.8

- old
+ new

@@ -1,12 +1,13 @@ 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 + 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 @@ -45,11 +46,12 @@ desc :bootstrap, "Install the whole shebang: gems, C programs, Python stuff, DOTS." def bootstrap install_programs and install_bundle and install end - desc :bundle, "Install and update the global gem bundle" - def bundle - install_bundle + 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