Class: UpstreamOnlySettings

Inherits:
Object
  • Object
show all
Defined in:
app/models/concerns/upstream_only_settings.rb

Overview

Settings to hide in downstream (will return nil for all values)

Constant Summary collapse

SETTINGS =
%w[
  deb_enable_structured_apt
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.include?(key) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/models/concerns/upstream_only_settings.rb', line 7

def self.include?(key)
  new.include?(key)
end

Instance Method Details

#include?(key) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/concerns/upstream_only_settings.rb', line 11

def include?(key)
  SETTINGS.include?(key.to_s)
end