Module: Chamber::Commands::Securable

Included in:
Secure, Unsecure
Defined in:
lib/chamber/commands/securable.rb

Instance Method Summary collapse

Instance Method Details

#initialize(only_sensitive: nil, **args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/chamber/commands/securable.rb', line 9

def initialize(only_sensitive: nil, **args)
  super(**args)

  ignored_settings_options        = args
                                      .merge(files: ignored_settings_filepaths)
                                      .reject { |k, _v| k == 'basepath' }
  self.ignored_settings_instance  = Chamber::Instance.new(**ignored_settings_options)
  self.current_settings_instance  = Chamber::Instance.new(**args)
  self.only_sensitive             = only_sensitive
end