Sha256: 45863649b99126ad833b86efe48e21146df8274c46f16cc4ed6453a4c4cfe671

Contents?: true

Size: 423 Bytes

Versions: 7

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators/base'

module SlackWebhookLogger
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path("..#{File::SEPARATOR}..#{File::SEPARATOR}templates", __FILE__)

    desc 'Create a Slack::WebhookLogger initializer'

    def copy_initializer
      template 'slack_webhook_logger.rb', 'config/initializers/slack_webhook_logger.rb'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slack_webhook_logger-0.4.0 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.3.1 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.3.0 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.2.2 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.2.1 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.2.0 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.1.0 lib/generators/slack_webhook_logger/install_generator.rb