Sha256: a3d639a5157fa22a4392345d7f351aa8bdaeedcd7967972384414a073f3e1d48

Contents?: true

Size: 782 Bytes

Versions: 2

Compression:

Stored size: 782 Bytes

Contents

namespace :check do
  namespace :yardstick do

    metric = Hexx::Suit::Metrics::Yardstick
    caller = Hexx::Suit::Utils::System
    output = ->{ ENV.fetch("YARDSTICK_OUTPUT") { "tmp/yardstick/results.log" } }

    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

2 entries across 2 versions & 1 rubygems

Version Path
hexx-suit-0.1.0 lib/tasks/check/yardstick.rake
hexx-suit-0.0.1 lib/tasks/check/yardstick.rake