Sha256: d6edba7ebf0238cd7a0c04d4f9a3136a7c7e1eb5c55a4b5850ae4c56ce35566a
Contents?: true
Size: 391 Bytes
Versions: 10
Compression:
Stored size: 391 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
10 entries across 10 versions & 1 rubygems