Class: Expressir::Commands::Benchmark

Inherits:
Base
  • Object
show all
Defined in:
lib/expressir/commands/benchmark.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#exit_with_error, #initialize, #say

Constructor Details

This class inherits a constructor from Expressir::Commands::Base

Instance Method Details

#run(path) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/expressir/commands/benchmark.rb', line 4

def run(path)
  configure_benchmarking

  if [".yml", ".yaml"].include?(File.extname(path).downcase)
    benchmark_from_manifest(path)
  else
    benchmark_file(path)
  end
end