Sha256: 8365839f30bae9c68396d0c2ff64636cd589798802586be84ac1441b2f312048

Contents?: true

Size: 396 Bytes

Versions: 273

Compression:

Stored size: 396 Bytes

Contents

require_relative "named_base_generator"

module Generators
  module Avo
    class DashboardGenerator < NamedBaseGenerator
      source_root File.expand_path("templates", __dir__)

      namespace "avo:dashboard"
      desc "Add an Avo dashboard to your project."

      def handle
        template "dashboards/dashboard.tt", "app/avo/dashboards/#{name.underscore}.rb"
      end
    end
  end
end

Version data entries

273 entries across 273 versions & 1 rubygems

Version Path
avo-2.17.1.pre.5.stackedlayout lib/generators/avo/dashboard_generator.rb
avo-2.17.1.pre.4.issue.1342 lib/generators/avo/dashboard_generator.rb
avo-2.17.1.pre.3 lib/generators/avo/dashboard_generator.rb
avo-2.17.1.pre.2.customauthorizationclients lib/generators/avo/dashboard_generator.rb
avo-2.17.1.pre.1.zeitwerk.eager.load.dir lib/generators/avo/dashboard_generator.rb
avo-2.17.0 lib/generators/avo/dashboard_generator.rb
avo-2.16.1.pre.1.nativefields lib/generators/avo/dashboard_generator.rb
avo-2.16.0 lib/generators/avo/dashboard_generator.rb
avo-2.15.3 lib/generators/avo/dashboard_generator.rb
avo-2.15.3.pre.1.data.attrs.to.sidebar.items lib/generators/avo/dashboard_generator.rb
avo-2.15.2 lib/generators/avo/dashboard_generator.rb
avo-2.15.2.pre.1 lib/generators/avo/dashboard_generator.rb
avo-2.15.1 lib/generators/avo/dashboard_generator.rb
avo-2.15.0 lib/generators/avo/dashboard_generator.rb
avo-2.14.3.pre.7.polytranslations1 lib/generators/avo/dashboard_generator.rb
avo-2.14.3.pre.6.nosprockets lib/generators/avo/dashboard_generator.rb
avo-2.14.3.pre.5.nosprockets lib/generators/avo/dashboard_generator.rb
avo-2.14.3.pre.4.tosqlfix lib/generators/avo/dashboard_generator.rb
avo-2.14.3.pre.3.jsbundling lib/generators/avo/dashboard_generator.rb
avo-2.14.3.pre.2.tailwindcss lib/generators/avo/dashboard_generator.rb