Sha256: c66d768f6a81d83ad4b4ae7021ac8fc9fbeae3d8387dc225a11ea727ecd1db3d

Contents?: true

Size: 520 Bytes

Versions: 74

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

require_relative "<%= lib_path %>"

module Pu
  module <%= pug_module %>
    class <%= pug_class %> < Rails::Generators::Base
      include PlutoniumGenerators::Generator

      source_root File.expand_path('templates', __dir__)

      desc '<%= options[:desc] || 'TODO: add description' %>'

      argument :name

      def start
        raise NotImplementedError, "<%= pug_name %>"
      rescue StandardError => e
        exception "#{self.class} failed:", e
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
plutonium-0.19.8 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.19.7 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.19.6 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.19.5 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.19.4 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.19.3 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.19.2 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.19.1 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.19.0 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.8 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.7 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.6 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.5 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.4 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.3 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.2 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.1 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.18.0 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.16.5 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.16.4 lib/generators/pu/gen/pug/templates/pug.rb.tt