123456789_123456789_123456789_123456789_123456789_

Module: Bundler::Thor::Invocation::ClassMethods

Relationships & Source Files
Defined in: lib/bundler/vendor/thor/lib/thor/invocation.rb

Instance Method Summary

Instance Method Details

#prepare_for_invocation(key, name)

This method is for internal use only.

This method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in ::Bundler::Thor::Group).

[ GitHub ]

  
# File 'lib/bundler/vendor/thor/lib/thor/invocation.rb', line 11

def prepare_for_invocation(key, name) #:nodoc:
  case name
  when Symbol, String
    Bundler::Thor::Util.find_class_and_command_by_namespace(name.to_s, !key)
  else
    name
  end
end