Sha256: b26859417f483b09890bf77d6a7e71c4220899fd87eda8e7ac2e9df8f6e41cf5

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

require_relative "super_scaffold_base"

class IncomingWebhooksGenerator < Rails::Generators::Base
  include SuperScaffoldBase

  source_root File.expand_path("templates", __dir__)

  namespace "super_scaffold:incoming_webhooks"

  argument :provider_name

  def generate
    # We add the name of the specific super_scaffolding command that we want to
    # invoke to the beginning of the argument string.
    ARGV.unshift "incoming-webhooks"
    BulletTrain::SuperScaffolding::Runner.new.run
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bullet_train-super_scaffolding-1.6.12 lib/generators/super_scaffold/incoming_webhooks/incoming_webhooks_generator.rb