This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
action(instance)
public
Wraps an action object and
call it accordingly to the thor class behavior.
# File lib/bundler/vendor/thor/lib/thor/actions.rb, line 90
def action(instance) #:nodoc:
if behavior == :revoke
instance.revoke!
else
instance.invoke!
end
end