This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
invoke_command(command, *args)
public
Invoke the given command if the given args.
# File lib/bundler/vendor/thor/lib/thor/invocation.rb, line 121
def invoke_command(command, *args) #:nodoc:
current = @_invocations[self.class]
unless current.include?(command.name)
current << command.name
command.run(self, *args)
end
end