Class: Checker::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/checker/helper.rb

Class Method Summary collapse

Class Method Details

.show_help!Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/checker/helper.rb', line 3

def self.show_help!
  puts "Checker version #{Checker::VERSION}"
  puts "* install - type 'checker install' to install git pre-commit-hook"
  puts "* reinstall - type 'checker reinstall' to purge current hook git pre-commit-hook and install new one"
  puts "* modules - type 'checker modules' to see available modules"
  puts "* checks  - type 'checker [module name]' to check your current git stage"
  puts "* [dir]   - type 'checker [directory]' to check all files in specified directory"
  puts "            ex. 'checker lib/'; 'checker .' etc"
  puts "* help    - type 'checker help' to see this message :)"
  exit 0
end

.show_modules!(modules) ⇒ Object



15
16
17
18
# File 'lib/checker/helper.rb', line 15

def self.show_modules!(modules)
  puts "Available modules are: all, #{modules.join(", ")}"
  exit 0
end