Sha256: 41e7c1e22f62819fa448b2820e16ea0dbfba991a7cf09e9dda05f2c3b36b217f

Contents?: true

Size: 794 Bytes

Versions: 10

Compression:

Stored size: 794 Bytes

Contents

namespace :check do
  namespace :yardstick do

    metric = Hexx::Suit::Metrics::Yardstick
    caller = Hexx::RSpec::System
    output = lambda do
      ENV.fetch("YARDSTICK_OUTPUT") { "tmp/yardstick/results.log" }
    end

    desc "Runs yardstick metric"
    task :run do
      puts "******* STARTING METRIC yardstick"
      metric.run
      puts "see results in #{ output.call }"
      puts "******* ENDING METRIC yardstick"
    end

    desc "Displays the results of yardstick last run"
    task :display do
      puts "******* DISPLAYING METRIC yardstick"
      metric.load
      caller.call "cat #{ output.call }"
      puts "******* ENDING METRIC yardstick"
    end
  end

  desc "Runs yardstick metric and displays the results"
  task yardstick: %w(yardstick:run yardstick:display)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hexx-suit-2.2.3 lib/tasks/check/yardstick.rake
hexx-suit-2.2.2 lib/tasks/check/yardstick.rake
hexx-suit-2.2.1 lib/tasks/check/yardstick.rake
hexx-suit-2.2.0 lib/tasks/check/yardstick.rake
hexx-suit-2.1.0 lib/tasks/check/yardstick.rake
hexx-suit-2.0.0 lib/tasks/check/yardstick.rake
hexx-suit-1.5.0-x86_64-linux lib/tasks/check/yardstick.rake
hexx-suit-1.3.0-x86_64-linux lib/tasks/check/yardstick.rake
hexx-suit-1.2.0 lib/tasks/check/yardstick.rake
hexx-suit-1.0.0 lib/tasks/check/yardstick.rake