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

Version Path
albacore-0.3.6 spec/patches/system_patch.rb
albacore-1.0.0.rc.2 spec/patches/system_patch.rb
albacore-1.0.0.rc.1 spec/patches/system_patch.rb
albacore-0.3.5 spec/patches/system_patch.rb
albacore-0.3.4 spec/patches/system_patch.rb
albacore-0.3.3 spec/patches/system_patch.rb
albacore-0.3.2 spec/patches/system_patch.rb
albacore-0.3.1 spec/patches/system_patch.rb
albacore-0.3.0 spec/patches/system_patch.rb
albacore-0.2.6 spec/patches/system_patch.rb