Sha256: 43637151608d21b9e7b31eb7001e5c5c782e758d170ef204ef53af707f57f4fb
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
require 'singleton' require 'specinfra/command_result' module Specinfra module Backend class Base include Singleton def set_example(e) @example = e end def check_zero(cmd, *args) run_command(Specinfra.command.send(cmd, *args)).success? end def method_missing(meth, *args, &block) if meth.to_s =~ /^check/ check_zero(meth, *args) else run_command(Specinfra.command.send(meth, *args)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
specinfra-2.0.0.beta31 | lib/specinfra/backend/base.rb |