Sha256: 04cca39001caf4c345acda6769456fb68c58d09e3dc77b4ad96f6bdb2c82b2f4

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

require_relative "../../lib/plutonium_generators"

module Pu
  module Gem
    class PagyGenerator < Rails::Generators::Base
      include PlutoniumGenerators::Generator

      source_root File.expand_path("templates", __dir__)

      desc "Install Pagy"

      def start
        Bundler.with_unbundled_env do
          run "bundle add pagy"
        end

        directory "config"
      rescue => e
        exception "#{self.class} failed:", e
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plutonium-0.8.0 lib/generators/pu/gem/pagy/pagy_generator.rb