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

Version Path
albacore-0.2.5 spec/patches/system_patch.rb
albacore-0.2.4 spec/patches/system_patch.rb
albacore-0.2.3 spec/patches/system_patch.rb
albacore-0.2.2 spec/patches/system_patch.rb
albacore-0.2.0.preview2 spec/patches/system_patch.rb
albacore-0.2.0.preview1 spec/patches/system_patch.rb
albacore-0.1.5 spec/patches/system_patch.rb
albacore-0.1.4 spec/patches/system_patch.rb
albacore-0.1.3 spec/patches/system_patch.rb
albacore-0.1.2 spec/patches/system_patch.rb
albacore-0.1.1 spec/patches/system_patch.rb
albacore-0.1.0 spec/patches/system_patch.rb