Sha256: ec8d4fbd8cbff7a88a1acf305e6c8ffb9343163c77aafd263013d2924507591b
Contents?: true
Size: 401 Bytes
Versions: 43
Compression:
Stored size: 401 Bytes
Contents
require "rails/generators" module Generators module Avo class MetricCardGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) namespace "avo:card:metric" desc "Add a metric card for your Avo dashboard." def handle template "cards/metric_card_sample.tt", "app/avo/cards/#{name.underscore}.rb" end end end end
Version data entries
43 entries across 43 versions & 1 rubygems