Sha256: f2f3f73bcb81c88191b161ef892ef294032f098ab5ce9a482e539e8faa5afffc

Contents?: true

Size: 600 Bytes

Versions: 7

Compression:

Stored size: 600 Bytes

Contents

module TestData
  module Configurators
    class Initializer
      def initialize
        @generator = InitializerGenerator.new
        @config = TestData.config
      end

      def verify
        path = "config/initializers/test_data.rb"
        pathname = Pathname.new("#{@config.pwd}/#{path}")
        if pathname.readable?
          ConfigurationVerification.new(looks_good?: true)
        else
          ConfigurationVerification.new(problems: [
            "'#{path}' is not readable"
          ])
        end
      end

      def configure
        @generator.call
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
test_data-0.3.2 lib/test_data/configurators/initializer.rb
test_data-0.3.1 lib/test_data/configurators/initializer.rb
test_data-0.3.0 lib/test_data/configurators/initializer.rb
test_data-0.2.2 lib/test_data/configurators/initializer.rb
test_data-0.2.1 lib/test_data/configurators/initializer.rb
test_data-0.2.0 lib/test_data/configurators/initializer.rb
test_data-0.1.0 lib/test_data/configurators/initializer.rb