Sha256: 991a6f3d062acde4aa509de4bbece8825cda99fca42f806bf68b7a1d9d5d4d55

Contents?: true

Size: 395 Bytes

Versions: 43

Compression:

Stored size: 395 Bytes

Contents

require "rails/generators"

module Generators
  module Avo
    class DashboardGenerator < ::Rails::Generators::NamedBase
      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

43 entries across 43 versions & 1 rubygems

Version Path
avo-2.10.2 lib/generators/avo/dashboard_generator.rb
avo-2.9.2.pre1 lib/generators/avo/dashboard_generator.rb
avo-2.10.0 lib/generators/avo/dashboard_generator.rb
avo-2.9.1.pre7 lib/generators/avo/dashboard_generator.rb
avo-2.9.1.pre6 lib/generators/avo/dashboard_generator.rb
avo-2.9.1.pre5 lib/generators/avo/dashboard_generator.rb
avo-2.9.1.pre4 lib/generators/avo/dashboard_generator.rb
avo-2.9.1.pre3 lib/generators/avo/dashboard_generator.rb
avo-2.9.1.pre2 lib/generators/avo/dashboard_generator.rb
avo-2.9.1.pre1 lib/generators/avo/dashboard_generator.rb
avo-2.9.0 lib/generators/avo/dashboard_generator.rb
avo-2.8.0 lib/generators/avo/dashboard_generator.rb
avo-2.7.1.pre.1 lib/generators/avo/dashboard_generator.rb
avo-2.7.0 lib/generators/avo/dashboard_generator.rb
avo-2.6.1.pre.2 lib/generators/avo/dashboard_generator.rb
avo-2.6.1.pre.1 lib/generators/avo/dashboard_generator.rb
avo-2.6.0 lib/generators/avo/dashboard_generator.rb
avo-2.5.2.pre.7 lib/generators/avo/dashboard_generator.rb
avo-2.5.2.pre.6 lib/generators/avo/dashboard_generator.rb
avo-2.5.2.pre.5 lib/generators/avo/dashboard_generator.rb