class Fastlane::Actions::PeripheryAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/periphery/actions/periphery_action.rb, line 152 def self.available_options [ FastlaneCore::ConfigItem.new(key: :executable, env_name: "PERIPHERY_EXECUTABLE", description: "Path to the `periphery` executable on your machine", optional: true), FastlaneCore::ConfigItem.new(key: :config, env_name: "PERIPHERY_CONFIG", description: "Path to configuration file", optional: true, type: String), FastlaneCore::ConfigItem.new(key: :skip_build, env_name: "PERIPHERY_SKIP_BUILD", description: "Skip the project build step", optional: true, default_value: false, type: Boolean), FastlaneCore::ConfigItem.new(key: :index_store_path, env_name: "PERIPHERY_INDEX_STORE_PATH", description: "Path to index store to use", optional: true, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/periphery/actions/periphery_action.rb, line 140 def self.description "Identifies unused code in Swift projects using Periphery" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/periphery/actions/periphery_action.rb, line 183 def self.is_supported?(platform) [:ios, :mac].include?(platform) end
output()
click to toggle source
# File lib/fastlane/plugin/periphery/actions/periphery_action.rb, line 177 def self.output [ ["PERIPHERY_RESULTS", "The output of periphery decoded into an array of Result objects."] ] end
return_value()
click to toggle source
# File lib/fastlane/plugin/periphery/actions/periphery_action.rb, line 148 def self.return_value "Output of the command parsed from JSON into an array of Result objects" end
run(params)
click to toggle source
# File lib/fastlane/plugin/periphery/actions/periphery_action.rb, line 134 def self.run(params) require 'json' Runner.new(params).run end