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-3.14.3 lib/generators/avo/dashboard_generator.rb
avo-3.14.2 lib/generators/avo/dashboard_generator.rb
avo-3.14.1 lib/generators/avo/dashboard_generator.rb
avo-3.14.0 lib/generators/avo/dashboard_generator.rb
avo-3.13.7 lib/generators/avo/dashboard_generator.rb
avo-3.13.6 lib/generators/avo/dashboard_generator.rb
avo-3.13.5 lib/generators/avo/dashboard_generator.rb
avo-3.13.4 lib/generators/avo/dashboard_generator.rb
avo-3.13.3 lib/generators/avo/dashboard_generator.rb
avo-3.13.2 lib/generators/avo/dashboard_generator.rb
avo-3.13.1 lib/generators/avo/dashboard_generator.rb
avo-3.13.0 lib/generators/avo/dashboard_generator.rb
avo-2.53.0 lib/generators/avo/dashboard_generator.rb
avo-3.12.0 lib/generators/avo/dashboard_generator.rb
avo-3.11.10 lib/generators/avo/dashboard_generator.rb
avo-3.11.9 lib/generators/avo/dashboard_generator.rb
avo-3.11.8 lib/generators/avo/dashboard_generator.rb
avo-3.11.7 lib/generators/avo/dashboard_generator.rb
avo-3.11.6 lib/generators/avo/dashboard_generator.rb
avo-3.11.5 lib/generators/avo/dashboard_generator.rb