mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
9 lines
257 B
Ruby
9 lines
257 B
Ruby
class S3RegionSiteSetting
|
|
def self.valid_value?(val)
|
|
all_values.include? val
|
|
end
|
|
|
|
def self.all_values
|
|
@all_values ||= ['', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1'].sort
|
|
end
|
|
end |