Sha256: 2bd8af35060dcc902da457d8a1bc71a740f8287555d017faa4eb8c05699e9fa2

Contents?: true

Size: 424 Bytes

Versions: 12

Compression:

Stored size: 424 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

12 entries across 12 versions & 1 rubygems

Version Path
slack_webhook_logger-0.7.0 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.6.5 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.6.4 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.6.3 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.6.2 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.6.1 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.6.0 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.5.5 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.5.4 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.5.2 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.5.1 lib/generators/slack_webhook_logger/install_generator.rb
slack_webhook_logger-0.5.0 lib/generators/slack_webhook_logger/install_generator.rb