Module: GrafanaAnnotations::Rake::Task
- Included in:
- Rake::Task
- Defined in:
- lib/grafana_annotations/rake.rb
Instance Method Summary collapse
Instance Method Details
#invoke(*args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/grafana_annotations/rake.rb', line 6 def invoke(*args) return super unless GrafanaAnnotations.configured? text = [GrafanaAnnotations.config.rake_text_prefix, name].join(' ') text += " #{args.inspect}" unless args.empty? ::GrafanaAnnotations.wrap(text: text, tags: GrafanaAnnotations.config.) do super end end |