Sha256: 4c751576e91285ed1a6439fa4ca054926057a5053219e4ba6c789449f955117c
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
require 'singleton' require 'specinfra/command_result' require 'specinfra/command/processor' module Specinfra class Backend class Base def initialize(config) @config = config end 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.beta24 | lib/specinfra/backend/base.rb |