class Pantograph::Actions::OptOutUsageAction
Public Class Methods
category()
click to toggle source
# File pantograph/lib/pantograph/actions/opt_out_usage.rb, line 41 def self.category :misc end
description()
click to toggle source
# File pantograph/lib/pantograph/actions/opt_out_usage.rb, line 9 def self.description 'This will stop uploading the information which actions were run' end
details()
click to toggle source
# File pantograph/lib/pantograph/actions/opt_out_usage.rb, line 13 def self.details [ 'By default, _pantograph_ will track what actions are being used. No personal/sensitive information is recorded.', 'Learn more at [https://urbanquakers.github.io/pantograph/#metrics](https://urbanquakers.github.io/pantograph/#metrics).', 'Add `opt_out_usage` at the top of your Pantfile to disable metrics collection.' ].join("\n") end
example_code()
click to toggle source
# File pantograph/lib/pantograph/actions/opt_out_usage.rb, line 29 def self.example_code [ ' # add this to the top of your Pantfile opt_out_usage ' ] end
is_supported?(platform)
click to toggle source
# File pantograph/lib/pantograph/actions/opt_out_usage.rb, line 25 def self.is_supported?(platform) true end
run(params)
click to toggle source
# File pantograph/lib/pantograph/actions/opt_out_usage.rb, line 4 def self.run(params) ENV['PANTOGRAPH_OPT_OUT_USAGE'] = 'YES' UI.message('Disabled upload of used actions') end
step_text()
click to toggle source
# File pantograph/lib/pantograph/actions/opt_out_usage.rb, line 37 def self.step_text 'Disabled Usage Data Tracking' end