Sha256: 6d33033ab7b81999ea929e98eb8b6b1b0a21cfadb98a3e8b397be87c531c1036
Contents?: true
Size: 800 Bytes
Versions: 3
Compression:
Stored size: 800 Bytes
Contents
namespace :check do namespace :yardstick do metric = Hexx::Suit::Metrics::Yardstick caller = Hexx::Suit::Utils::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hexx-suit-0.2.2 | lib/tasks/check/yardstick.rake |
hexx-suit-0.2.1 | lib/tasks/check/yardstick.rake |
hexx-suit-0.2.0 | lib/tasks/check/yardstick.rake |