Sha256: 4f69a8076b44dac6ca9f3add51bd18f0a994bb7b5d864fd22faed23e9b932d9d
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
module TestData module Configurators class Initializer def initialize @generator = InitializerGenerator.new @config = TestData.config end def verify pathname = Pathname.new("#{@config.pwd}/config/initializers/test_data.rb") if pathname.readable? ConfigurationVerification.new(looks_good?: true) else ConfigurationVerification.new(problems: [ "'#{pathname}' is not readable" ]) end end def configure @generator.call end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_data-0.0.2 | lib/test_data/configurators/initializer.rb |