Module: Chamber

Extended by:
Chamber
Included in:
Chamber
Defined in:
lib/chamber/file.rb,
lib/chamber.rb,
lib/chamber/version.rb,
lib/chamber/file_set.rb,
lib/chamber/instance.rb,
lib/chamber/settings.rb,
lib/chamber/binary/heroku.rb,
lib/chamber/binary/runner.rb,
lib/chamber/binary/travis.rb,
lib/chamber/commands/base.rb,
lib/chamber/commands/show.rb,
lib/chamber/configuration.rb,
lib/chamber/namespace_set.rb,
lib/chamber/rails/railtie.rb,
lib/chamber/commands/files.rb,
lib/chamber/commands/heroku.rb,
lib/chamber/commands/secure.rb,
lib/chamber/commands/travis.rb,
lib/chamber/environmentable.rb,
lib/chamber/commands/compare.rb,
lib/chamber/context_resolver.rb,
lib/chamber/commands/securable.rb,
lib/chamber/commands/comparable.rb,
lib/chamber/commands/initialize.rb,
lib/chamber/commands/heroku/pull.rb,
lib/chamber/commands/heroku/push.rb,
lib/chamber/commands/heroku/clear.rb,
lib/chamber/filters/secure_filter.rb,
lib/chamber/commands/travis/secure.rb,
lib/chamber/commands/heroku/compare.rb,
lib/chamber/filters/insecure_filter.rb,
lib/chamber/filters/namespace_filter.rb,
lib/chamber/filters/decryption_filter.rb,
lib/chamber/filters/encryption_filter.rb,
lib/chamber/filters/environment_filter.rb,
lib/chamber/errors/undecryptable_value_error.rb,
lib/chamber/filters/boolean_conversion_filter.rb,
lib/chamber/filters/translate_secure_keys_filter.rb

Overview

Internal: Respresents a set of namespaces which will be processed by Chamber at various stages when settings are loaded.

The main function that this class provides is the ability to create a NamespaceSet from either an array-like or hash-like object and the ability to allow callables to be passed which will then be executed.

Defined Under Namespace

Modules: Binary, Commands, Environmentable, Errors, Filters, Rails Classes: Configuration, ContextResolver, File, FileSet, Instance, NamespaceSet, Settings

Constant Summary collapse

VERSION =
'2.3.0'

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



31
32
33
34
35
# File 'lib/chamber.rb', line 31

def method_missing(name, *args)
  return instance.public_send(name, *args) if instance.respond_to?(name)

  super
end

Instance Method Details

#envObject



15
16
17
# File 'lib/chamber.rb', line 15

def env
  instance.settings
end

#load(options = {}) ⇒ Object



7
8
9
# File 'lib/chamber.rb', line 7

def load(options = {})
  self.instance = Instance.new(options)
end

#respond_to_missing?(name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/chamber.rb', line 37

def respond_to_missing?(name, include_private = false)
  instance.respond_to?(name, include_private)
end

#to_s(options = {}) ⇒ Object



11
12
13
# File 'lib/chamber.rb', line 11

def to_s(options = {})
  instance.to_s(options)
end