Writing config files in Ruby

Writing config files in Ruby

Afa6e65b91b46f3317c3d3e94e9255f2?s=128

Grzegorz Witek

March 25, 2018
Tweet

Transcript

  1. > < FOOTNOTE TEXT NOBODY READS WRITING CONFIG FILES IN

    RUBY @ARNVALD, RUBYCONFTW 2018 1
  2. CONFIG FILES? next 2

  3. BORING!!! next 3

  4. just use JSON / YAML / XML or store it

    in the db next 4
  5. configuration is static next 5

  6. what if it has to be dynamic? next 6

  7. is it still configuration? next 7

  8. gem 'simple_configuration' next 8

  9. github: arnvald/simple_configuration next 9

  10. Challenge time! next 10

  11. > < STILL NOTHING TO SEE HERE 11 MISSING_VALUE =

    '__missing_value__' def config( config_name, default_value = MISSING_VALUE, &default_value_blk )
  12. > < STILL NOTHING TO SEE HERE 12 engineering.kaligo.com