Class: EnvManifest::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/env_manifest/settings.rb

Defined Under Namespace

Classes: MissingRequiredEnv

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ Settings

Returns a new instance of Settings.



7
8
9
10
11
# File 'lib/env_manifest/settings.rb', line 7

def initialize(file_path)
  @file_path = file_path
  load_defaults
  validate
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



5
6
7
# File 'lib/env_manifest/settings.rb', line 5

def file_path
  @file_path
end

Instance Method Details

#[](key) ⇒ Object



13
14
15
16
# File 'lib/env_manifest/settings.rb', line 13

def [](key)
  val = ENV[key]
  return val
end