22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# File 'lib/fastlane/plugin/checks/options.rb', line 22
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :service_account_file_path,
description: "Path to your service account json file. Please refer to https://developers.google.com/checks/guide/integrate/cli/install-checks-cli#authenticate-service to get your private key JSON file",
optional: false,
verify_block: proc do |value|
UI.user_error!("Could not find file at path '#{value}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :project_id,
description: "Google Cloud Platform project name",
optional: true),
FastlaneCore::ConfigItem.new(key: :account_id,
description: "Google Checks Account Id",
optional: false),
FastlaneCore::ConfigItem.new(key: :app_id,
description: "Google Checks App Id",
optional: false),
FastlaneCore::ConfigItem.new(key: :operation_id,
description: "Operation ID",
optional: true),
FastlaneCore::ConfigItem.new(key: :severity_threshold,
description: "severity threshold. Possible values: PRIORITY, POTENTIAL, OPPORTUNITY",
default_value: "PRIORITY",
optional: true,
verify_block: proc do |value|
UI.user_error!("Invalid value '#{value}'") unless ['PRIORITY', 'POTENTIAL', 'OPPORTUNITY'].include?(value)
end),
FastlaneCore::ConfigItem.new(key: :binary_path,
description: "Path to the app",
optional: false,
verify_block: proc do |value|
UI.user_error!("App file not found at path '#{value}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :generate_report,
description: "skip generating report",
default_value: true,
type: Fastlane::Boolean),
FastlaneCore::ConfigItem.new(key: :wait_for_report,
description: "Wait for report to complete",
default_value: true,
type: Fastlane::Boolean),
FastlaneCore::ConfigItem.new(key: :fail_on,
description: "action will fail if the report contains issues with severity equal or higher than the specified value. Possible values: all, never",
default_value: "never",
type: String,
verify_block: proc do |value|
UI.user_error!("Invalid value '#{value}'") unless ['all', 'never'].include?(value)
end)
]
end
|