Sha256: a1e0e876b5a90e8a02f7f6757376830952b1375cec86229fa3f46a29858fa61a

Contents?: true

Size: 242 Bytes

Versions: 10

Compression:

Stored size: 242 Bytes

Contents

class MetricGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../templates', __FILE__)

  def generate_metric
    template "metric.rb.erb", File.join("app", "prosperity", class_path, "#{file_name}_metric.rb")
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
prosperity-0.0.11 lib/generators/metric/metric_generator.rb
prosperity-0.0.10 lib/generators/metric/metric_generator.rb
prosperity-0.0.9 lib/generators/metric/metric_generator.rb
prosperity-0.0.8 lib/generators/metric/metric_generator.rb
prosperity-0.0.7 lib/generators/metric/metric_generator.rb
prosperity-0.0.6 lib/generators/metric/metric_generator.rb
prosperity-0.0.5 lib/generators/metric/metric_generator.rb
prosperity-0.0.4 lib/generators/metric/metric_generator.rb
prosperity-0.0.3 lib/generators/metric/metric_generator.rb
prosperity-0.0.2 lib/generators/metric/metric_generator.rb