Sha256: 9534913a1b3a78202ac7f6a4f80b2ed0a44841726adf12b8e97e8819e3fdf507

Contents?: true

Size: 348 Bytes

Versions: 8

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'
require 'rails/generators/base'

module TsSchema
  module Generators
    class GenerateGenerator < Rails::Generators::Base

      desc "Generates a schema.d.ts file"

      def generate_schema
        create_file TsSchema.configuration.output, TsSchema.generate
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ts_schema-0.1.11 lib/generators/generate_generator.rb
ts_schema-0.1.10 lib/generators/generate_generator.rb
ts_schema-0.1.9 lib/generators/generate_generator.rb
ts_schema-0.1.8 lib/generators/generate_generator.rb
ts_schema-0.1.7 lib/generators/generate_generator.rb
ts_schema-0.1.6 lib/generators/generate_generator.rb
ts_schema-0.1.5 lib/generators/generate_generator.rb
ts_schema-0.1.4 lib/generators/generate_generator.rb