Sha256: 71b5e991c02107a8161180c0e0516bd329a635af4cd56dcea947f209f292af6d

Contents?: true

Size: 473 Bytes

Versions: 155

Compression:

Stored size: 473 Bytes

Contents

require_relative "../named_base_generator"

module Generators
  module Avo
    module Card
      class ChartkickGenerator < Generators::Avo::NamedBaseGenerator
        source_root File.expand_path("../templates", __dir__)

        namespace "avo:card:chartkick"
        desc "Add a chartkick card for your Avo dashboard."

        def handle
          template "cards/chartkick_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.53.0 lib/generators/avo/card/chartkick_generator.rb
avo-2.52.0 lib/generators/avo/card/chartkick_generator.rb
avo-2.49.0 lib/generators/avo/card/chartkick_generator.rb
avo-2.48.0 lib/generators/avo/card/chartkick_generator.rb
avo-2.47.0 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre13 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre12 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre10 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre11 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre8 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre9 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre7 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre5 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre6 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre4 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre3 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre2 lib/generators/avo/card/chartkick_generator.rb
avo-3.0.0.pre1 lib/generators/avo/card/chartkick_generator.rb
avo-2.46.0 lib/generators/avo/card/chartkick_generator.rb
avo-2.45.0 lib/generators/avo/card/chartkick_generator.rb