Class: Fastlane::Actions::OptOutUsageAction

Inherits:
Fastlane::Action show all
Defined in:
fastlane/lib/fastlane/actions/opt_out_usage.rb

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, available_options, deprecated_notes, lane_context, method_missing, other_action, output, return_type, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorObject



21
22
23
# File 'fastlane/lib/fastlane/actions/opt_out_usage.rb', line 21

def self.author
  "KrauseFx"
end

.categoryObject



35
36
37
# File 'fastlane/lib/fastlane/actions/opt_out_usage.rb', line 35

def self.category
  :misc
end

.descriptionObject



9
10
11
# File 'fastlane/lib/fastlane/actions/opt_out_usage.rb', line 9

def self.description
  "This will stop uploading the information which actions were run"
end

.detailsObject



13
14
15
16
17
18
19
# File 'fastlane/lib/fastlane/actions/opt_out_usage.rb', line 13

def self.details
  [
    "By default, _fastlane_ will track what actions are being used. No personal/sensitive information is recorded.",
    "Learn more at [https://docs.fastlane.tools/#metrics](https://docs.fastlane.tools/#metrics).",
    "Add `opt_out_usage` at the top of your Fastfile to disable metrics collection."
  ].join("\n")
end

.example_codeObject



29
30
31
32
33
# File 'fastlane/lib/fastlane/actions/opt_out_usage.rb', line 29

def self.example_code
  [
    'opt_out_usage # add this to the top of your Fastfile'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



25
26
27
# File 'fastlane/lib/fastlane/actions/opt_out_usage.rb', line 25

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



4
5
6
7
# File 'fastlane/lib/fastlane/actions/opt_out_usage.rb', line 4

def self.run(params)
  ENV['FASTLANE_OPT_OUT_USAGE'] = "YES"
  UI.message("Disabled upload of used actions")
end