Sha256: d1c58983b93e0e9d092d3c042a7844a6a7bc14e086fe03fc5ad231d78e2ee991

Contents?: true

Size: 1019 Bytes

Versions: 4

Compression:

Stored size: 1019 Bytes

Contents

module Pantograph
  module Actions
    class OptOutUsageAction < Action
      def self.run(params)
        ENV['PANTOGRAPH_OPT_OUT_USAGE'] = "YES"
        UI.message("Disabled upload of used actions")
      end

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

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

      def self.author
        "KrauseFx"
      end

      def self.is_supported?(platform)
        true
      end

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

      def self.category
        :misc
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pantograph-0.1.4 pantograph/lib/pantograph/actions/opt_out_usage.rb
pantograph-0.1.3 pantograph/lib/pantograph/actions/opt_out_usage.rb
pantograph-0.1.1 pantograph/lib/pantograph/actions/opt_out_usage.rb
pantograph-0.1.0 pantograph/lib/pantograph/actions/opt_out_usage.rb