Sha256: 6e891704c850d987fdefcd7782747297e99b41b9bfaa69908f574edf53b49e1d
Contents?: true
Size: 411 Bytes
Versions: 12
Compression:
Stored size: 411 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
12 entries across 12 versions & 1 rubygems