Sha256: 22ba458937c948501ccb63bec1621c54604bdd3ff8b0cbbb35506bc6241d8e18

Contents?: true

Size: 567 Bytes

Versions: 4

Compression:

Stored size: 567 Bytes

Contents

class Lono::Builder::Allow
  class Region < Base
    include Lono::Concerns::AwsInfo

    # interface method
    def message
      messages = []
      word = config_name.to_s # IE: regions or locations
      messages << "This #{word.singularize} is not allowed to be used: Detected current #{word.singularize}=#{current_region}"
      messages << "Allow #{word}: #{allows.join(', ')}" if allows
      messages << "Deny #{word}: #{denys.join(', ')}" if denys
      messages.join("\n")
    end

    # interface method
    def check_value
      region
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/builder/allow/region.rb
lono-8.0.0.pre.rc5 lib/lono/builder/allow/region.rb
lono-8.0.0.pre.rc4 lib/lono/builder/allow/region.rb
lono-8.0.0.pre.rc3 lib/lono/builder/allow/region.rb