Sha256: c303fb6be0f57f99a4e28112713fcaddc6b4b8dce052aa88dacfaf798ed4e131

Contents?: true

Size: 432 Bytes

Versions: 40

Compression:

Stored size: 432 Bytes

Contents

class Terraspace::Builder::Allow
  class Env < Base
    # interface method
    def message
      messages = []
      messages << "This env is not allowed to be used: TS_ENV=#{Terraspace.env}"
      messages << "Allow envs: #{allows.join(', ')}" if allows
      messages << "Deny envs: #{denys.join(', ')}" if denys
      messages.join("\n")
    end

    # interface method
    def check_value
      Terraspace.env
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/builder/allow/env.rb
terraspace-2.2.16 lib/terraspace/builder/allow/env.rb
terraspace-2.2.15 lib/terraspace/builder/allow/env.rb
terraspace-2.2.14 lib/terraspace/builder/allow/env.rb
terraspace-2.2.13 lib/terraspace/builder/allow/env.rb
terraspace-2.2.12 lib/terraspace/builder/allow/env.rb
terraspace-2.2.11 lib/terraspace/builder/allow/env.rb
terraspace-2.2.10 lib/terraspace/builder/allow/env.rb
terraspace-2.2.9 lib/terraspace/builder/allow/env.rb
terraspace-2.2.8 lib/terraspace/builder/allow/env.rb
terraspace-2.2.7 lib/terraspace/builder/allow/env.rb
terraspace-2.2.6 lib/terraspace/builder/allow/env.rb
terraspace-2.2.5 lib/terraspace/builder/allow/env.rb
terraspace-2.2.4 lib/terraspace/builder/allow/env.rb
terraspace-2.2.3 lib/terraspace/builder/allow/env.rb
terraspace-2.2.2 lib/terraspace/builder/allow/env.rb
terraspace-2.2.1 lib/terraspace/builder/allow/env.rb
terraspace-2.2.0 lib/terraspace/builder/allow/env.rb
terraspace-2.1.7 lib/terraspace/builder/allow/env.rb
terraspace-2.1.6 lib/terraspace/builder/allow/env.rb