Sha256: 72f139d823cc51aa2a3e401e5be2737fd5c1426bd9cfc8bb026f51b3cdf418a8

Contents?: true

Size: 686 Bytes

Versions: 5

Compression:

Stored size: 686 Bytes

Contents

namespace :check do
  namespace :fu do

    metric = Hexx::Suit::Metrics::MetricFu
    caller = Hexx::Suit::Utils::System
    output = -> { ENV.fetch("METRIC_FU_OUTPUT") { "tmp/metric_fu/output" } }

    # configures the metrics
    task :configure do
      metric.load
    end

    desc "Runs metric_fu"
    task run: :configure do
      caller.call "metric_fu --no-open --out #{ output.call }"
      puts "see results in #{ output.call }"
    end

    desc "Displays results of metric_fu last run"
    task display: :configure do
      caller.call "metric_fu --open --out #{ output.call }"
    end
  end

  desc "Runs metric_fu and displays the results"
  task fu: %w(fu:display)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hexx-suit-0.2.2 lib/tasks/check/fu.rake
hexx-suit-0.2.1 lib/tasks/check/fu.rake
hexx-suit-0.2.0 lib/tasks/check/fu.rake
hexx-suit-0.1.0 lib/tasks/check/fu.rake
hexx-suit-0.0.1 lib/tasks/check/fu.rake