Sha256: c4894f1c49f72cc22a8dfcc2c44214d508b48a7acb3678dac00b81919677f0eb
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require 'json' module Mach5 class Runner include Command::Benchmark include Command::Chart def initialize(config) @config = config end %w{before after}.each do |method| define_method(method) do @config.send("#{method}_commands").each do |command| Kernel.system command end end end %w{benchmark chart}.each do |method| define_method(method) do |options| if options[:all] send("_all_#{method}s") elsif options[:only] send("_only_#{method}s", options[:only]) else send("_only_new_#{method}s") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mach5-tools-0.3.0 | lib/mach5-tools/runner.rb |