alphagov/frontend — comment on commit 958da42839dfcb90b0e7f1bdb9350c453998bb79
File:  line 0
By craigw:

If we do this I'd like it to be `Gds::Platform` (I've been slanted against "utils" packages for a while; they tend end up messy grab-bags) and I'd prefer working with an instance over working with the class (even if this has to use a Singleton) as I've generally found these easier to test (this may be a personal preference):

Gds::Platform.current.name # => "preview"

If it's just for the current platform name though I'm not totally convinced we need this immediately and I'd like to see what happens without it and then DRY that up.