Sha256: a1a3174ae2b409d9d88959d53e4e41e2fc3d1c0fc51118e58f9ad6a620980ffe

Contents?: true

Size: 313 Bytes

Versions: 34

Compression:

Stored size: 313 Bytes

Contents

require 'rails/generators'

module Rswag
  module Ui
    class CustomGenerator < Rails::Generators::Base
      source_root File.expand_path('../../../../../../lib/rswag/ui', __FILE__)

      def add_custom_index
        copy_file('index.erb', 'app/views/rswag/ui/home/index.html.erb')
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 3 rubygems

Version Path
rswag-ui-2.16.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.15.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.14.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.13.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.12.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.11.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.10.1 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.10.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.9.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.8.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.7.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.6.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.5.1 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.5.1.rc1 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.5.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.5.0.rc1 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.4.0 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.3.3 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.3.2 lib/generators/rswag/ui/custom/custom_generator.rb
rswag-ui-2.3.1 lib/generators/rswag/ui/custom/custom_generator.rb