Sha256: 82494f0ae3af2c1603c0dd52323768533eb7c8544495d195fe7575c08f12b302

Contents?: true

Size: 741 Bytes

Versions: 5

Compression:

Stored size: 741 Bytes

Contents

require 'rails/generators/base'

module ChimeSdk
  # Generators implementation by amazon-chime-sdk-rails.
  module Generators #:nodoc:
    # Install generator to copy initializer to rails application.
    # @example Run install generator
    #   rails generate chime_sdk:install
    class InstallGenerator < Rails::Generators::Base
      desc <<-DESC.strip_heredoc
        Create chime_sdk initializer in your application.

        Example:

          rails generate chime_sdk:insall

      DESC

      source_root File.expand_path("../../templates", __FILE__)

      # Copies initializer file in application directory
      def copy_initializer
        template "chime_sdk.rb", "config/initializers/chime_sdk.rb"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amazon-chime-sdk-rails-2.0.1 lib/generators/chime_sdk/install_generator.rb
amazon-chime-sdk-rails-2.0.0 lib/generators/chime_sdk/install_generator.rb
amazon-chime-sdk-rails-1.1.1 lib/generators/chime_sdk/install_generator.rb
amazon-chime-sdk-rails-1.1.0 lib/generators/chime_sdk/install_generator.rb
amazon-chime-sdk-rails-1.0.0 lib/generators/chime_sdk/install_generator.rb