Sha256: c88a71576c0fa766c00fc609e4eed7c356357ced213f2fc33bd66bd4cd97af5e
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
module SystemPatch attr_accessor :disable_system, :force_system_failure def initialize @disable_system = false @force_command_failure = false end def system_command @system_command end def system(cmd) @system_command = cmd result = true result = super(cmd) if !disable_system return false if @force_system_failure return result end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.0.9 | spec/patches/system_patch.rb |
albacore-0.0.8 | spec/patches/system_patch.rb |