Sha256: b7d863a84dfe49194e3634c74bbc4424ba18b71ac5bd39e4f69bc3f30d731ccf

Contents?: true

Size: 627 Bytes

Versions: 45

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

require 'avm/registry'

module Avm
  module Applications
    class Base
      module Organization
        DEFAULT_ORGANIZATION = '_undefined_'
        ORGANIZATION_CONFIG_KEY = 'organization'

        # @return [String]
        def default_organization
          DEFAULT_ORGANIZATION
        end

        # @return [String, nil]
        def organization_by_configuration
          entry(ORGANIZATION_CONFIG_KEY).optional_value
        end

        # @return [String]
        def organization
          organization_by_configuration || default_organization
        end
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
avm-0.94.1 lib/avm/applications/base/organization.rb
eac_tools-0.98.0 sub/avm/lib/avm/applications/base/organization.rb
avm-0.94.0 lib/avm/applications/base/organization.rb
eac_tools-0.94.0 sub/avm/lib/avm/applications/base/organization.rb
avm-0.93.0 lib/avm/applications/base/organization.rb
eac_tools-0.92.0 sub/avm/lib/avm/applications/base/organization.rb
avm-0.92.0 lib/avm/applications/base/organization.rb
eac_tools-0.91.0 sub/avm/lib/avm/applications/base/organization.rb
avm-0.90.1 lib/avm/applications/base/organization.rb
eac_tools-0.87.1 sub/avm/lib/avm/applications/base/organization.rb
avm-0.90.0 lib/avm/applications/base/organization.rb
eac_tools-0.87.0 sub/avm/lib/avm/applications/base/organization.rb
avm-0.89.0 lib/avm/applications/base/organization.rb
eac_tools-0.86.12 sub/avm/lib/avm/applications/base/organization.rb
avm-0.88.0 lib/avm/applications/base/organization.rb
eac_tools-0.86.11 sub/avm/lib/avm/applications/base/organization.rb
avm-0.87.0 lib/avm/applications/base/organization.rb
eac_tools-0.86.8 sub/avm/lib/avm/applications/base/organization.rb
avm-0.86.2 lib/avm/applications/base/organization.rb
eac_tools-0.86.7 sub/avm/lib/avm/applications/base/organization.rb