Method: Gitlab::Help.ri_cmd

Defined in:
lib/gitlab/help.rb

.ri_cmdString

Finds the location of ‘ri’ on a system.

Returns:

  • (String)
[View source]

35
36
37
38
39
40
# File 'lib/gitlab/help.rb', line 35

def ri_cmd
  which_ri = `which ri`.chomp
  raise "'ri' tool not found in $PATH. Please install it to use the help." if which_ri.empty?

  which_ri
end