Class: Fastlane::ActionCollector
- Inherits:
-
Object
- Object
- Fastlane::ActionCollector
- Defined in:
- fastlane/lib/fastlane/action_collector.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.determine_version(name) ⇒ Object
e.g.
:gym
:xcversion
"fastlane-plugin-my_plugin/xcversion"
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'fastlane/lib/fastlane/action_collector.rb', line 20 def self.determine_version(name) if name.to_s.include?(PluginManager.plugin_prefix) # That's an action from a plugin, we need to fetch its version number begin plugin_name = name.split("/").first.gsub(PluginManager.plugin_prefix, '') return Fastlane.const_get(plugin_name.fastlane_class)::VERSION rescue => ex UI.verbose(ex) return "undefined" end end return Fastlane::VERSION # that's the case for all built-in actions end |
Instance Method Details
#determine_version(name) ⇒ Object
12 13 14 |
# File 'fastlane/lib/fastlane/action_collector.rb', line 12 def determine_version(name) self.class.determine_version(name) end |
#show_message ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'fastlane/lib/fastlane/action_collector.rb', line 3 def UI.("Sending Crash/Success information. Learn more at https://docs.fastlane.tools/#metrics") UI.("No personal/sensitive data is sent. Only sharing the following:") UI.(launches) UI.(@error) if @error UI.("This information is used to fix failing actions and improve integrations that are often used.") UI.("You can disable this by adding `opt_out_usage` at the top of your Fastfile") end |