Method: Fastlane::Runner#class_reference_from_action_name

Defined in:
fastlane/lib/fastlane/runner.rb

#class_reference_from_action_name(method_sym) ⇒ Object

Pass a action symbol (e.g. :deliver or :commit_version_bump) and this method will return a reference to the action class if it exists. In case the action with this name can’t be found this method will return nil. This method is being called by ‘trigger_action_by_name` to see if a given action is available (either built-in or loaded from a plugin) and is also being called from the fastlane docs generator



96
97
98
99
100
101
102
# File 'fastlane/lib/fastlane/runner.rb', line 96

def class_reference_from_action_name(method_sym)
  method_str = method_sym.to_s.delete("?") # as a `?` could be at the end of the method name
  class_ref = Actions.action_class_ref(method_str)

  return class_ref if class_ref && class_ref.respond_to?(:run)
  nil
end