Method: Gitlab::Help.help_map
- Defined in:
- lib/gitlab/help.rb
permalink .help_map ⇒ Hash<Array>
A hash map that contains help topics (Branches, Groups, etc.) and a list of commands that are defined under a topic (create_branch, branches, protect_branch, etc.).
47 48 49 50 51 52 53 54 55 |
# File 'lib/gitlab/help.rb', line 47 def help_map @help_map ||= actions.each_with_object({}) do |action, hsh| key = client.method(action) .owner.to_s.gsub(/Gitlab::(?:Client::)?/, '') hsh[key] ||= [] hsh[key] << action.to_s end end |