Sha256: 5012c4420c5d387871dfbddaabc7ff9175b86e237683960a1ed7704714325569
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 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" copy_file "components/index.yml", "doc/components/index.yml" copy_file "components/schemas/index.yml", "doc/components/schemas/index.yml" copy_file "components/schemas/User.yml", "doc/components/schemas/User.yml" copy_file "components/schemas/Users.yml", "doc/components/schemas/Users.yml" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schema_serializer-0.2.7 | lib/generators/schema_serializer/install/install_generator.rb |
schema_serializer-0.2.6 | lib/generators/schema_serializer/install/install_generator.rb |