Sha256: 9e8be75b63132a24f06dc7ee79d5832798d367d48e01fcd0498a6ccba1a7c8b1

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

module ShInterceptor
  def sh *args
    @received = args
  end
  def shie *args
    @received = args
  end
  def system_calls
    @system_control_calls || 0
  end
  def system *args
    @received = args
    @system_calls = system_calls + 1
  end
  def system_control_calls
    @system_control_calls || 0
  end
  def system_control cmd, *args
    @wd = Map.options(args).getopt(:work_dir)
    @received = cmd
    @args = args
    @system_control_calls = system_control_calls + 1
  end
  def received_wd
    @wd || nil
  end
  def received_args
     return @received if @received.respond_to? :zip
     return [@received] if @received.instance_of?(String)
     [] 
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.6.2.rc1 spec/sh_interceptor.rb