Sha256: b35e4187aede572907c2a33b363f11e91491a2d0292d2e1ba6f9d11418d8f1aa

Contents?: true

Size: 357 Bytes

Versions: 15

Compression:

Stored size: 357 Bytes

Contents

module SchemaSerializer::Generators
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path("templates", __dir__)

    def create_config_file
      copy_file "schema_serializer.rb", "config/initializers/schema_serializer.rb"
    end

    def create_example_schema
      copy_file "schema.yml", "doc/schema.yml"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
schema_serializer-0.2.4 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.2.3 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.2.2 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.2.1 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.2.0 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.1.3 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.1.2 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.1.1 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.1.0 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.0.10 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.0.9 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.0.8 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.0.7 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.0.6 lib/generators/schema_serializer/install/install_generator.rb
schema_serializer-0.0.5 lib/generators/schema_serializer/install/install_generator.rb