Class: Cadre::CommandLine
- Inherits:
-
Thor
- Object
- Thor
- Cadre::CommandLine
- Defined in:
- lib/cadre/command-line.rb
Instance Method Summary collapse
Instance Method Details
#how_to ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cadre/command-line.rb', line 7 def how_to command_name = File::basename($0) puts <<-EOH This is a set of tools for aiding development - to integrate testing and metrics with editors and notifications. Try: #{command_name} vim_plugin > ~/.vim/plugin/cadre.vim #{command_name} rspec_config >> spec/spec_helper.rb #{command_name} simplecov_config >> .simplecov Yeah, that's three commands, and you have to do the redirects yourself, but you can review the output before making it live, and put them somewhere else if that's what you want. Configuration (including tool config templates) is sourced from: #{Valise.to_s("\n ")} EOH end |
#rspec_config ⇒ Object
33 34 35 |
# File 'lib/cadre/command-line.rb', line 33 def rspec_config puts Valise.find("templates/rspec-config").contents end |
#simplecov_config ⇒ Object
38 39 40 |
# File 'lib/cadre/command-line.rb', line 38 def simplecov_config puts Valise.find("templates/simplecov-config").contents end |
#vim_plugin ⇒ Object
28 29 30 |
# File 'lib/cadre/command-line.rb', line 28 def vim_plugin puts Valise.find("templates/plugin.vim").contents end |