travis-api/lib/travis/model/build/config/yaml.rb
Aakriti Gupta 65f1a29d86 Move travis-core files from /vendor to /lib.
- Re-factor
- Remove code for notifications
- Remove addons
- Remove travis-core gem.
- Ignore logs directory only
- Move core tests to spec/lib
2016-07-20 11:22:25 +02:00

15 lines
253 B
Ruby

class Build
class Config
class Yaml < Struct.new(:config, :options)
def run
normalize(config)
end
def normalize(hash)
Hash[hash.map { |key, value| [key == true ? :on : key, value] }]
end
end
end
end