Class: DitCMD

Inherits:
Thor
  • Object
show all
Defined in:
lib/dit.rb

Overview

This is the thor class the CLI calls. It’s a thin layer on top of the Dit class. See above.

Instance Method Summary collapse

Instance Method Details

#cleanObject



219
220
221
# File 'lib/dit.rb', line 219

def clean
  Dit.clean_home
end

#initObject



204
205
206
# File 'lib/dit.rb', line 204

def init
  Dit.init
end

#rehashObject



209
210
211
# File 'lib/dit.rb', line 209

def rehash
  Dit.symlink_all
end

#versionObject



214
215
216
# File 'lib/dit.rb', line 214

def version
  puts "Dit #{Dit.version} on ruby #{RUBY_VERSION}"
end