Sha256: 6087306477a0f544c159fe99ec597b118d51aa552f863f0a97e47b60ab95fae7

Contents?: true

Size: 320 Bytes

Versions: 11

Compression:

Stored size: 320 Bytes

Contents

module Swaggard
  class InstallGenerator < Rails::Generators::Base

    desc "Installs a Swaggard initializer config"
    source_root File.expand_path("../templates", __FILE__)

    def create_initializer
      dest = File.join("config/initializers", "swaggard.rb")
      template "swaggard.rb", dest
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
swaggard-1.5.1 lib/generators/swaggard/install_generator.rb
swaggard-1.5.0 lib/generators/swaggard/install_generator.rb
swaggard-1.4.0 lib/generators/swaggard/install_generator.rb
swaggard-1.3.0 lib/generators/swaggard/install_generator.rb
swaggard-1.2.0 lib/generators/swaggard/install_generator.rb
swaggard-1.1.1 lib/generators/swaggard/install_generator.rb
swaggard-1.1.0 lib/generators/swaggard/install_generator.rb
swaggard-1.0.2 lib/generators/swaggard/install_generator.rb
swaggard-1.0.1 lib/generators/swaggard/install_generator.rb
swaggard-1.0.0 lib/generators/swaggard/install_generator.rb
swaggard-0.5.4 lib/generators/swaggard/install_generator.rb