Method: HP::Cloud::Progress#increment

Defined in:
lib/hpcloud/progress.rb

#increment(siz) ⇒ Object



36
37
38
39
40
41
42
43
# File 'lib/hpcloud/progress.rb', line 36

def increment(siz)
  return if siz.nil?
  return if siz == 0
  begin
    @pbar.progress += siz
  rescue
  end
end