lib/bbc/cosmos/config/cosmos.rb in bbc-cosmos-config-0.3.1 vs lib/bbc/cosmos/config/cosmos.rb in bbc-cosmos-config-0.3.2

- old
+ new

@@ -32,9 +32,13 @@ def environment BBC::Cosmos.production? ? config[:environment] : ENV.fetch('APP_ENV', 'development') end + def version + BBC::Cosmos.production? ? config[:release] : "#{environment}-version" + end + private def load_config_from_s3? config[:configuration].include?(:config_path) && BBC::Cosmos.production? end