Class: Dots::Command

Inherits:
Thor
  • Object
show all
Includes:
Bootstrap, Installation, Persistence, Sanity, Thor::Actions
Defined in:
lib/ruby/dots/command.rb

Constant Summary

Constants included from Installation

Installation::REMOTE

Instance Method Summary collapse

Methods included from Persistence

#forget_dot_file, #link_dot_files, #persist_dot_file

Methods included from Installation

#copy_to_home_directory, #pull_latest_changes, #update_the_framework

Methods included from Bootstrap

#install_configuration, #install_packages, #install_programs

Methods included from Sanity

#open_textmate, #stop_being_insane!

Instance Method Details

#bootstrapObject



47
48
49
# File 'lib/ruby/dots/command.rb', line 47

def bootstrap
  install_programs and install_bundle and install
end

#forget(name) ⇒ Object



42
43
44
# File 'lib/ruby/dots/command.rb', line 42

def forget name
  forget_dot_file name
end

#installObject



17
18
19
# File 'lib/ruby/dots/command.rb', line 17

def install
  copy_to_home_directory and link_dot_files
end


32
33
34
# File 'lib/ruby/dots/command.rb', line 32

def link
  link_dot_files
end

#persist(name) ⇒ Object



37
38
39
# File 'lib/ruby/dots/command.rb', line 37

def persist name
  persist_dot_file name
end

#robifyObject



53
54
55
# File 'lib/ruby/dots/command.rb', line 53

def robify
  stop_being_insane! and (open_textmate if options[:edit])
end

#updateObject



22
23
24
# File 'lib/ruby/dots/command.rb', line 22

def update
  update_the_framework
end

#usageObject



12
13
14
# File 'lib/ruby/dots/command.rb', line 12

def usage
  say Dots.usage_information and help
end

#versionObject



27
28
29
# File 'lib/ruby/dots/command.rb', line 27

def version
  say dots_version
end