class SchemaSerializer::Generators::InstallGenerator
Public Instance Methods
create_config_file()
click to toggle source
# File lib/generators/schema_serializer/install/install_generator.rb, line 5 def create_config_file copy_file "schema_serializer.rb", "config/initializers/schema_serializer.rb" end
create_example_schema()
click to toggle source
# File lib/generators/schema_serializer/install/install_generator.rb, line 9 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