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.16.3 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.16.1 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.16.0 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.24 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.23 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.22 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.21 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.20 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.19 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.18 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.17 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.16 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.15 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.14 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.13 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.12 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.11 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.10 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.9 lib/generators/pu/gen/pug/templates/pug.rb.tt
plutonium-0.15.8 lib/generators/pu/gen/pug/templates/pug.rb.tt