Sha256: 257353e17b39ccd97c687ae96d86a5fcf998a8ef80913410ebbd88fbf837f16c

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 Bytes

Contents

class SwaggerGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  def copy_example_yml
    copy_file 'example.yml', "lib/swagger/#{WestfieldSwagger.api_version}.yml"
    copy_file 'spec.rb', 'spec/requests/swagger_spec.rb'
    route "mount WestfieldSwagger::Engine, at: '/'\n"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
westfield_swagger-1.2.6 lib/generators/swagger/swagger_generator.rb
westfield_swagger-1.2.5 lib/generators/swagger/swagger_generator.rb
westfield_swagger-1.2.4 lib/generators/swagger/swagger_generator.rb
westfield_swagger-1.2.3 lib/generators/swagger/swagger_generator.rb