Sha256: 5a75b6c34216efda8f48e4f000fa03ef6f31119a09432227a8f73c5dc8351622

Contents?: true

Size: 461 Bytes

Versions: 155

Compression:

Stored size: 461 Bytes

Contents

require_relative "../named_base_generator"

module Generators
  module Avo
    module Card
      class MetricGenerator < Generators::Avo::NamedBaseGenerator
        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
end

Version data entries

155 entries across 155 versions & 1 rubygems

Version Path
avo-2.34.4 lib/generators/avo/card/metric_generator.rb
avo-2.34.4.pre.1 lib/generators/avo/card/metric_generator.rb
avo-2.34.3 lib/generators/avo/card/metric_generator.rb
avo-2.34.2 lib/generators/avo/card/metric_generator.rb
avo-2.34.1 lib/generators/avo/card/metric_generator.rb
avo-2.34.0 lib/generators/avo/card/metric_generator.rb
avo-2.33.3 lib/generators/avo/card/metric_generator.rb
avo-2.33.3.pre.2 lib/generators/avo/card/metric_generator.rb
avo-2.33.3.pre.1 lib/generators/avo/card/metric_generator.rb
avo-2.33.2 lib/generators/avo/card/metric_generator.rb
avo-2.33.1 lib/generators/avo/card/metric_generator.rb
avo-2.33.0 lib/generators/avo/card/metric_generator.rb
avo-2.32.6 lib/generators/avo/card/metric_generator.rb
avo-2.32.5 lib/generators/avo/card/metric_generator.rb
avo-2.32.4 lib/generators/avo/card/metric_generator.rb
avo-2.32.3 lib/generators/avo/card/metric_generator.rb
avo-2.32.2 lib/generators/avo/card/metric_generator.rb
avo-2.32.1 lib/generators/avo/card/metric_generator.rb
avo-2.32.0 lib/generators/avo/card/metric_generator.rb
avo-2.31.0 lib/generators/avo/card/metric_generator.rb