Sha256: 868745f2848bba1ab348355409f98c477838c05abce5af6abc5f844db483e3f4

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

module W3cRspecValidators
  module Generators
    class ConfigGenerator < Rails::Generators::Base
      desc 'Creates a w3c_rspec_validators gem configuration file at config/w3c_rspec_validators.yml'

      def self.source_root
        @_source_root ||= File.expand_path("../templates", __FILE__)
      end

      def create_config_file
        template 'w3c_rspec_validators.yml', File.join('config', 'w3c_rspec_validators.yml')
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
w3c_rspec_validators-0.3.0 lib/rails/generators/w3c_rspec_validators/config/config_generator.rb
w3c_rspec_validators-0.2.1 lib/rails/generators/w3c_rspec_validators/config/config_generator.rb
w3c_rspec_validators-0.2.0 lib/rails/generators/w3c_rspec_validators/config/config_generator.rb
w3c_rspec_validators-0.1.0 lib/rails/generators/w3c_rspec_validators/config/config_generator.rb