Class: Legion::CLI::Check::PrivacyCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/legion/cli/check/privacy_check.rb

Constant Summary collapse

CLOUD_PROVIDERS =
%i[bedrock anthropic openai gemini azure].freeze

Instance Method Summary collapse

Instance Method Details

#overall_pass?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/legion/cli/check/privacy_check.rb', line 17

def overall_pass?
  run.values.all? { |v| v == :pass }
end

#runObject



9
10
11
12
13
14
15
# File 'lib/legion/cli/check/privacy_check.rb', line 9

def run
  @results = {}
  @results[:flag_set]              = check_flag_set
  @results[:no_cloud_keys]         = check_no_cloud_keys
  @results[:no_external_endpoints] = check_no_external_endpoints
  @results
end