Method: Foreman::Thor::Base::ClassMethods#all_commands
- Defined in:
- lib/foreman/vendor/thor/lib/thor/base.rb
#all_commands ⇒ Object Also known as: all_tasks
Returns the commands for this Foreman::Thor class and all subclasses.
Returns
- OrderedHash
-
An ordered hash with commands names as keys and Foreman::Thor::Command objects as values.
348 349 350 351 |
# File 'lib/foreman/vendor/thor/lib/thor/base.rb', line 348 def all_commands @all_commands ||= from_superclass(:all_commands, Foreman::Thor::CoreExt::OrderedHash.new) @all_commands.merge!(commands) end |